空白和HTML [英] Whitespace and html
问题描述
我有一些html,其中包含一个段落标记和一些文字
它
我想要做的是保持这里的空白paragrpah所以
它看起来与浏览器中的完全相同,没有删除任何
空格。我怎么能这样做?
I have some html which consists of a paragraph tag and some text inside
it
What I want to do is to maintain the whitespace in this paragrpah so
that it appears exactly like that in the browser, without any of the
spaces removed. How can I do this?
推荐答案
il***@igsoftwaresolutions.co.uk 写道:
我有一些html,包含段落标签和一些文字
里面
我想要做的是保持这个paragrpah中的空白,所以
看起来就像在浏览器中那样,没有删除了任何
空格。我怎样才能做到这一点?
I have some html which consists of a paragraph tag and some text
inside it
What I want to do is to maintain the whitespace in this paragrpah so
that it appears exactly like that in the browser, without any of the
spaces removed. How can I do this?
< pre>< / pre>
Grtz,
-
Rik Wasmus
<pre></pre>
Grtz,
--
Rik Wasmus
2006-08-15, il***@igsoftwaresolutions.co.uk 写道:
On 2006-08-15, il***@igsoftwaresolutions.co.uk wrote:
我有一些html,其中包含一个段落标记和一些内部文字
it
我想要做的是保持这个paragrpah中的空白,所以
看起来就像在浏览器中那样,没有删除了任何
空格。我怎样才能做到这一点?
I have some html which consists of a paragraph tag and some text inside
it
What I want to do is to maintain the whitespace in this paragrpah so
that it appears exactly like that in the browser, without any of the
spaces removed. How can I do this?
请参阅
comp.infosystems中出现的主题white-space help。 www.authoring.stylesheets 。
-
Chris FA Johnson< http://cfaj.freeshell.org>
====================== ============================ =================
作者:
Shell Scripting Recipes:问题解决方案(2005,Apress)
See the thread, "white-space help", which appeared in
comp.infosystems.www.authoring.stylesheets a few days ago.
--
Chris F.A. Johnson <http://cfaj.freeshell.org>
================================================== =================
Author:
Shell Scripting Recipes: A Problem-Solution Approach (2005, Apress)
il *** @ igsoftwaresolutions.co.uk 写道:
我有一些HTML包括一个段落标签和里面的一些文字
它
我想做的是保持这个paragrpah中的空白所以
它看起来与浏览器中的完全相同,没有删除任何
空格。我该怎么做?
I have some html which consists of a paragraph tag and some text inside
it
What I want to do is to maintain the whitespace in this paragrpah so
that it appears exactly like that in the browser, without any of the
spaces removed. How can I do this?
HTML 4.01规范说明了多余的空格被压缩。
只有使用PRE元素或重复(和乏味)使用
& nbsp;与普通空间相结合将保留空白。
我实际上发现这有点烦人,因为我很习惯两个
空格结束后的时期一个句子。
-
David E. Ross
< http://www.rossde .com />
关注某人(例如Pres。Bush)在你的电子邮件中偷窥你的b $ b?使用PGP。
请参阅我的< http://www.rossde.com/PGP/>
The HTML 4.01 specification says that excess whitespace is condensed.
Only with the use of the PRE element or repeated (and tedious) use of
coupled with ordinary spaces will whitespace be preserved.
I actually find this somewhat annoying since I am very used to two
spaces after the period at the end of a sentence.
--
David E. Ross
<http://www.rossde.com/>
Concerned about someone (e.g., Pres. Bush) snooping
into your E-mail? Use PGP.
See my <http://www.rossde.com/PGP/>
这篇关于空白和HTML的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!