gpt4 book ai didi

javascript - 打印模态窗口的全部内容

转载 作者:行者123 更新时间:2023-12-03 11:36:17 26 4
gpt4 key购买 nike

我的 Kendo UI kendoWindow 对象的内容包含超过 1 个打印页的内容。每当我打印模式窗口的内容时,我只能打印一页。

我尝试将容器对象的高度设置为较大的数字,但打印审阅中仍然只有 1 页。

任何有关如何打印模式窗口的全部内容(当超过 1 个打印页时)的建议都会很棒。

感谢您的宝贵时间。

最佳答案

经过一番调查,我确定需要以下 CSS 才能正确打印。

@media print
{
body > .k-window
{
display: block !important;
position: relative !important;
top: auto !important;
left: auto !important;
width: auto !important;
height: auto !important;
border-width: 0;
box-shadow: none !important;
}
}

关于javascript - 打印模态窗口的全部内容,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26497275/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com