0

ワード ドキュメントから Expressions Web にコピー アンド ペーストすると、奇妙な動作が発生します。以下の単語からの私のスクリーンショットでは、一番上の行が 1 つの<span>タグに配置され、残りの行が別の<span>タグに配置され、2 つのタグの間にわずかなギャップが生じることがあります。これは、HTML を使用したコーディング方法の新しい標準になりつつありますか、それとも、単語ドキュメントに表示されない隠し文字/改行がありますか? たとえば、直接コピー/貼り付けすると、この 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>

Expressions を使用した余分な構文が必要なのはなぜですか?

ワードのスクリーンショット 式デザイン ビュー 式 HTML ビュー

4

1 に答える 1

2

私が間違っている可能性もありますが、通常、Microsoft Word からコピーして貼り付けると、Expression Web で問題が発生する可能性があると思います。正確な理由についてはもう少し説明しますが、私が大学にいたとき、これを行う場合はメモ帳などのプログラムからコピーして貼り付ける必要があると具体的に言われました。

Microsoft によると、直接のコピー/貼り付けは推奨されていないようです。まだ行っていない場合は、書式を設定して貼り付けてみてください。詳しくはこちらをご覧ください。

また、Word は Web デザイン ツールではないため Web マークアップがひどいと述べている Microsoft フォーラムへの別のリンクもあります。

于 2015-12-11T13:40:55.930 に答える