当我从 word doc 复制/粘贴到 Expressions Web 时,我得到了奇怪的行为。我的截图来自下面的文字,有时它会将顶行放在一个<span>
标签中,其余的放在一个单独的<span>
标签中,导致两者之间存在细微差距。这是否正在成为如何使用 HTML 进行编码的新规范,还是我的 word 文档中隐藏了我看不到的字符/中断。例如,直接复制/粘贴呈现此 HTML
<p class="MsoNormal"><b><u>This is the top row of my information<o:p>
</o:p></u></b></p>
<span style="font-size:12.0pt;font-family:"
Times New Roman";mso-fareast-font-family:
"Times New Roman";mso-ansi-language:EN-US;
mso-fareast-language:EN-US;
mso-bidi-language:AR-SA">This is information that should come
up under the top
row and I am just trying to span it for more than 1 line,
maybe go to 2 or three
or four or five or six.<span style="mso-spacerun: yes"> </span>
Oh here comes
more and more and more and more and more and more and more and more.
<span style="mso-spacerun: yes">
</span>Oh I am not done yet, not yet not yet.
<span style="mso-spacerun: yes">
</span>Okay I think this is enough once I reach one more last line.
<span style="mso-spacerun: yes">
</span>Almost to the end, yes I hit it!</span>
对我来说,只需使用以下语法即可实现完全相同的效果:
<p><strong><u>This is the top row of my information</u></strong><br>
This is information that should come up under the top row and I am just
trying to span it for more than 1 line, maybe go to 2 or three or four or
five or six. Oh here comes more and more and more
and more and more and more and more and more. Oh I am not done yet,
not yet not yet. Okay I think this is enough once I reach one more last
line. Almost to the end, yes I hit it!</p>
为什么所有额外的语法都带有表达式?