< br style ="page-break-after:always">无法使用Windows 8/8.1 [英] <br style="page-break-after: always"> not working Windows 8 / 8.1

查看:174
本文介绍了< br style ="page-break-after:always">无法使用Windows 8/8.1的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Windows 8/8.1(最初在8中出现问题,所以我升级到8.1,但问题仍然存在)

Windows 8/8.1 (Initially problem appeared in 8 so I upgraded to 8.1, but problem persists)

IE 11.0.2

IE 11.0.2

我正在使用一种叫做eTools的产品.它用于生成和管理《龙与地下城》游戏的角色表.信息存储在数据库文件中,但是要创建字符表,软件将使用XLS样式表来生成HTML文件.然后,脚本将在IE中打开HTML文件,并启动打印"命令.然后,用户选择打印机并单击确定".

I'm using a product called eTools. It is used to generate and manage character sheets for Dungeons and Dragons gaming. The information is stored in a database file, but to create a character sheet the software uses XLS stylesheets to generate a HTML file. A script then opens the HTML file in IE and initiates the Print command. The user then selects the printer and clicks OK.

问题是以下行被忽略了:

The problem is that the following line gets ignored:

<br style="page-break-after: always">

我非常确定这行是罪魁祸首,因为如果我保存HTML文件并将其打印在装有旧版Windows和IE的PC上,则可以正常工作.

I'm pretty sure that this line is the culprit because if I save the HTML file and print it on a PC with an older version of Windows and IE it works fine.

我已经测试了各种打印机,包括Adobe PDF打印机,并且所有打印机在Windows 8/8.1上均无法运行,但可以在较旧的版本上运行.

I have tested various printers, including Adobe PDF printer and all fail on Windows 8/8.1 but work on an older version.

该产品在Windows XP,Vista和7上均可正常运行,但在Windows 8和8.1 x64上则存在问题.

The product works fine on Windows XP, Vista and 7, but it has a problem on Windows 8 and 8.1 x64.

我想知道Windows 8/8.1或IE11中是否有我忽略的设置?

I'm wondering if there is a setting in Windows 8/8.1 or IE11 that I've overlooked?

我刚刚获取了在Windows 8.1和IE11中创建的HTML文件,并尝试在带有IE9的Windows Vista上进行打印.打印得很好.

I just took the HTML file created in Windows 8.1 and IE11 and tried to print it on Windows Vista with IE9. It printed fine.

这使我认为IE11的某些原因导致它忽略了分页符.

This leads me to think that there is something about IE11 that is causing it to ignore the page-break tags.

有人可以帮我吗?

推荐答案

根据 http://www.javascriptkit.com/dhtmltutors/pagebreak.shtml 问题可能与使用<br />元素有关:

According to http://www.javascriptkit.com/dhtmltutors/pagebreak.shtml the problem may be with using the <br /> element:

请注意,在某些浏览器中,分页后可能无法与<BR><HR>标记一起使用.

Note that page-break-after may not work with <BR> or <HR> tag in some browsers.

相反,他们建议尝试以下方法:

Instead, they suggest trying this:

<DIV style="page-break-after:always"></DIV>

使用div对我来说效果很好;希望它也能帮助其他人.

Using a div worked nicely for me; hope it helps someone else too.

这篇关于&lt; br style ="page-break-after:always"&gt;无法使用Windows 8/8.1的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆