Printing horizontally scrolling content onto the next page - possible?

痞子三分冷 提交于 2019-12-05 21:04:48

Short and sweet: no...

You have absolutely no control over the way things get printed with javascript. The best you can do is wrap the "Something long to print#6+ onto the next line".

Theoretically, you could if you knew what copy would be cut off and include that text in a block that is hidden on the screen but visible when printed.

<div class="noWrapContent">This is a long piece of text that stops here. This is the text that would be cut off.</div>
<div class="forPrint">This is the text that would be cut off.</div>

and then in ths css:

.forPrint { display: none; }

@media print { display: block;}

But, overall, you should just let it wrap when you are printing.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!