html格式:文本未正确对齐 页眉{颜色:黑色;字体系列:Arial,Helvetica,Sans Serif;字体大小:10pt}。页脚{颜色:黑色;字体系列:Arial,Helvetica,Sans Serif;字体大小:10pt;字体样式:italic;}。正文页眉{颜色:黑色;字体系列:Arial,Helvetica,Sans Serif;字体大小:10pt;字体重量:粗体;}。正文内容{颜色:黑色;字体系列:Arial,Helvetica,无衬线;字体大小:10pt;}这是为了通知您,您的帐户余额大于或低于可在网上银行业务中查看的阈值。请求的详细信息如下所示。
账号:XXXXXXXXXXhtml格式:文本未正确对齐 页眉{颜色:黑色;字体系列:Arial,Helvetica,Sans Serif;字体大小:10pt}。页脚{颜色:黑色;字体系列:Arial,Helvetica,Sans Serif;字体大小:10pt;字体样式:italic;}。正文页眉{颜色:黑色;字体系列:Arial,Helvetica,Sans Serif;字体大小:10pt;字体重量:粗体;}。正文内容{颜色:黑色;字体系列:Arial,Helvetica,无衬线;字体大小:10pt;}这是为了通知您,您的帐户余额大于或低于可在网上银行业务中查看的阈值。请求的详细信息如下所示。,html,Html,账号:XXXXXXXXXX余额金额:110,xxx.95此电子邮件及任何附件可能包含机密和特权信息。如果您不是预期收件人,请向gtmxxxxdesk@xxx.com或致电1-800-xxx-6xx4,请删除此电子邮件并销毁任何副本。非预期收件人传播或使用此信息是未经授权的d可能是非法的。警报启动时间:2011年9月8日加拿大东部时间上午11:35 当我把上面的html放在一个文件中,另存为.html,并在IE/FF中打开它时,帐号:没有按顺序向左对齐。这是为什么? 我知道有多个和标记,但现在,
余额金额:110,xxx.95
和
标记,但现在,这些是我需要处理的约束。也就是说,我无法摆脱它们:)
编辑:此外,在我的浏览器上,文本之间似乎有两个换行符:
非预期收件人传播或使用此信息是未经授权的,可能是非法的
,后续行:警报已启动
虽然只有1个
,但这是因为文本前面有空格。在pre
标记中,空格被解释为文字,不会被删除或折叠
只要HTML代码像现在这样被破坏,你就不能期望得到任何一致的结果。浏览器会通过忽略一些标记来尽可能地利用它,而每个浏览器会做得不同。这是因为文本之前有空格。在
pre
标记中,空格被解释为文本,而您没有被移除或折叠
只要HTML代码像现在这样被破坏,你就不能期望得到任何一致的结果。浏览器将通过忽略一些标记来尽可能地利用它,每个浏览器的做法都会有所不同。更改此项:
<html><head></head>
<body>
<pre style="word-wrap:break-word;">
<HTML><head> <style>.header { color: black; font-family: Arial, Helvetica, Sans-Serif; font-size: 10pt }.footer { color:black; font-family: Arial, Helvetica, Sans-Serif; font-size: 10pt; font-style: italic; } .body-header { color: black; font-family: Arial, Helvetica, Sans-Serif; font-size: 10pt; font-weight: bold; } .body-content { color: black; font-family: Arial, Helvetica, Sans-Serif; font-size: 10pt; }</style></head><body><p class="header">This is to notify you that you have an account balance that is greater than or below the threshold viewable on Online Banking for Business. The requested details appear below. <br></p> <span class="body-header"> Account Number: </span><span class="body-content"> xxxxxxxxxxx </span><br><span class="body-header"> Balance Amount: </span><span class="body-content"> 110,xxx.95 </span><br><br><p class="footer">This e-mail and any attachments may contain confidential and privileged information. If you are not the intended recipient, please report to gtmxxxxdesk@xxx.com or call 1-800-xxx-6xx4, and please delete this e-mail and destroy any copies. Any dissemination or use of this information by a person other than the intended recipient is unauthorized and may be illegal.<br></p> <p class="footer">Alert initiated: 08-Sep-2011 at 11:35AM Canada Eastern Time<br></p> </body></HTML></pre>
</body>
</html>
账号:
为此:
</p> <span class="body-header"> Account Number:
账号:
似乎对我有用…改变这一点:
<html><head></head>
<body>
<pre style="word-wrap:break-word;">
<HTML><head> <style>.header { color: black; font-family: Arial, Helvetica, Sans-Serif; font-size: 10pt }.footer { color:black; font-family: Arial, Helvetica, Sans-Serif; font-size: 10pt; font-style: italic; } .body-header { color: black; font-family: Arial, Helvetica, Sans-Serif; font-size: 10pt; font-weight: bold; } .body-content { color: black; font-family: Arial, Helvetica, Sans-Serif; font-size: 10pt; }</style></head><body><p class="header">This is to notify you that you have an account balance that is greater than or below the threshold viewable on Online Banking for Business. The requested details appear below. <br></p> <span class="body-header"> Account Number: </span><span class="body-content"> xxxxxxxxxxx </span><br><span class="body-header"> Balance Amount: </span><span class="body-content"> 110,xxx.95 </span><br><br><p class="footer">This e-mail and any attachments may contain confidential and privileged information. If you are not the intended recipient, please report to gtmxxxxdesk@xxx.com or call 1-800-xxx-6xx4, and please delete this e-mail and destroy any copies. Any dissemination or use of this information by a person other than the intended recipient is unauthorized and may be illegal.<br></p> <p class="footer">Alert initiated: 08-Sep-2011 at 11:35AM Canada Eastern Time<br></p> </body></HTML></pre>
</body>
</html>
账号:
为此:
</p> <span class="body-header"> Account Number:
账号:
似乎对我有用…啊哈!我发现了问题所在 您需要删除
和
标记=)之间的空格
像这样:
</p><span class="body-header"> Account Number:
账号:
啊哈!我找到问题了
您需要删除
和
标记=)之间的空格
像这样:
</p><span class="body-header"> Account Number:
账号:
我猜是您的约束导致了问题。另外,既然您正在制作表格数据,您就不能只使用表格吗?您是在问如何在不修复格式错误的问题的情况下修复格式错误的HTML的显示问题吗?我猜是您的约束导致了问题。另外,既然您正在制作表格数据,您就不能只使用表格吗?是吗询问如何在不修复格式错误的问题的情况下修复格式错误的HTML的显示问题?谢谢。请查看我的编辑。尝试将代码的该部分更改为:“…并且可能是非法的。