Copy/Paste 从文字到表达

Copy/Paste From Word To Expression

当我从 Word 文档 copy/paste 进入 Expressions Web 时,出现了奇怪的行为。我在下面的 word 屏幕截图中,有时它会将顶行放在一个 <span> 标签中,其余的放在单独的 <span> 标签中,导致两者之间略有差距。这是否成为如何使用 HTML 进行编码的新规范,还是我在我的 Word 文档中隐藏了我没有看到的 characters/breaks。例如,一个直 copy/paste 表示这个 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:&quot;
Times New Roman&quot;;mso-fareast-font-family:
&quot;Times New Roman&quot;;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">&nbsp; </span>
Oh here comes 
more and more and more and more and more and more and more and more.
<span style="mso-spacerun: yes">&nbsp;
</span>Oh I am not done yet, not yet not yet.
<span style="mso-spacerun: yes">&nbsp;
</span>Okay I think this is enough once I reach one more last line.
<span style="mso-spacerun: yes">&nbsp;
</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>

为什么所有额外的语法都带有表达式?

我可能是错的,但我相信从 Microsoft Word 复制和粘贴通常会导致 Expression Web 出现问题。我会详细说明原因,但在我上大学时,我被明确告知如果我们要这样做,我们应该从记事本等程序中复制和粘贴。

根据微软的说法,似乎不推荐直接 copy/paste。如果您还没有,请尝试粘贴格式。 See here for more information.

Microsoft 论坛上还有 another link 指出 Word 的网页标记很糟糕,因为它不是网页设计工具。