当我从word文档复制/粘贴到Expressions Web时,我会遇到奇怪的行为。我从下面的单词中截取屏幕截图,有时会将顶行放在一个<span>
标记中,其余标记放在单独的<span>
标记中,导致两者之间略有差距。这是否成为如何使用HTML进行编码的新规范,或者我的单词doc中隐藏的字符/中断是我看不到的。例如,直接复制/粘贴呈现此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>
为什么使用表达式的所有额外语法?
答案 0 :(得分:2)
我可能错了,但我相信通常从Microsoft Word复制和粘贴可能会导致Expression Web出现问题。我会更多地了解原因,但是当我在大学时,我被特别告知如果我们要这样做,我们应该从记事本这样的程序中复制和粘贴。
根据微软的说法,似乎不建议直接复制/粘贴。如果您还没有,请尝试使用格式粘贴。 See here for more information.
此处还有another link微软论坛声称Word有可怕的网络加价,因为它不是网页设计工具。