简体   繁体   English

使用window.print()打印边框

[英]Border on print using window.print()

i have a issue about the border style on my window.print(). 我在window.print()上遇到边框样式问题。 I want is when i print the page the table border is showed. 我想要的是当我打印页面时显示表格边框。 And the privious printing is hidden. 并且秘密印刷是隐藏的。

this is my sample code the print is working. 这是我的示例代码,打印效果良好。

jsfiddle.net/v921/zHt8Y/12/ jsfiddle.net/v921/zHt8Y/12/

you are setting border width to 0 first and then again on next line border to 1px. 您首先将边框宽度设置为0,然后在下一行边框上再次设置为1px。 This is what causing an issue. 这就是导致问题的原因。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM