在< p>中添加空格 [英] adding white space in <p>

查看:316
本文介绍了在< p>中添加空格的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有时我希望在< p>中添加空格至于获得的效果

类似于制表符。


我该怎么办?


使用空图像似乎是确定的方式,但相当复杂。 (并且

不要用字体改变大小)woudl

unicode工作中的一些空格字符? (我的html文件使用unicode)


Xah
xa*@xahlee.org

a ?? http://xahlee.org/

解决方案

Xah Lee写道:

有时我希望在< p>中添加空格关于实现效果
类似于制表符。

我应该怎么做?

使用空图像似乎是肯定的方式,但相当复杂。 (并且不要用字体改变大小)在unicode工作中Woudl一些空格字符? (我的html文件使用unicode)




怎么样& nbsp; (代码点160)。


''tab''经常被用作文字处理软件中的穷人表 - 如果

你有表格数据,使用表格元素。


显示您想要获得的内容的URL将有助于我们。


-

Benjamin Niemann

电子邮件:粉红色at odahoda dot de

WWW: http://www.odahoda.de/


啊,& nbsp;是吗!我一直以为它只是防止换线......


顺便说一下,有没有相当于unicode的东西?


Xah
xa*@xahlee.org

a ?? http://xahlee.org/

Benjamin Niemann写道:< blockquote class =post_quotes> Xah Lee写道:

有时我希望在< p>中添加空格关于实现效果
类似于制表符。

我应该怎么做?

使用空图像似乎是肯定的方式,但相当复杂。 (并且不要用字体改变大小)在unicode工作中Woudl一些空格字符? (我的html文件使用unicode)



怎么样& nbsp; (codepoint 160)。

''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' br />
显示您想要获得的内容的网址对我们两个人都有帮助。

-
Benjamin Niemann
电子邮件:粉红色at odahoda dot de
WWW: http://www.odahoda.de/




啊,谢谢!


a要求unicode等同......就像你说的那样,'' s代码点160,或

00A0。
http://en.wikipedia.org/wiki/List_of..ity_references


Xah
xa*@xahlee.org

a ?? http://xahlee.org/

Benjamin Niemann写道:< blockquote class =post_quotes> Xah Lee写道:

有时我希望在< p>中添加空格关于实现效果
类似于制表符。

我应该怎么做?

使用空图像似乎是肯定的方式,但相当复杂。 (并且不要用字体改变大小)在unicode工作中Woudl一些空格字符? (我的html文件使用unicode)



怎么样& nbsp; (codepoint 160)。

''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' br />
显示您想要获得的内容的网址对我们两个人都有帮助。

-
Benjamin Niemann
电子邮件:粉红色at odahoda dot de
WWW: http://www.odahoda.de/




sometimes i wish to add white space in <p> as to achived effects
similar to tab.

what should i do?

using empty image seems the sure way but rather complicated. (and
dosen''t change size with font) Woudl some of the space character in
unicode work? (my html files uses unicode)

Xah
xa*@xahlee.org
a?? http://xahlee.org/

解决方案

Xah Lee wrote:

sometimes i wish to add white space in <p> as to achived effects
similar to tab.

what should i do?

using empty image seems the sure way but rather complicated. (and
dosen''t change size with font) Woudl some of the space character in
unicode work? (my html files uses unicode)



How about &nbsp; (codepoint 160).

''tab'' is often used as a ''poor mans table'' in wordprocessing software - if
you have tabular data, use the table element.

An URL that shows what you are trying to achive would help both of us.

--
Benjamin Niemann
Email: pink at odahoda dot de
WWW: http://www.odahoda.de/


ah, &nbsp; is it! I always thought it just prevent linebreak...

btw, is there a unicode equivalent?

Xah
xa*@xahlee.org
a?? http://xahlee.org/
Benjamin Niemann wrote:

Xah Lee wrote:

sometimes i wish to add white space in <p> as to achived effects
similar to tab.

what should i do?

using empty image seems the sure way but rather complicated. (and
dosen''t change size with font) Woudl some of the space character in
unicode work? (my html files uses unicode)



How about &nbsp; (codepoint 160).

''tab'' is often used as a ''poor mans table'' in wordprocessing software - if
you have tabular data, use the table element.

An URL that shows what you are trying to achive would help both of us.

--
Benjamin Niemann
Email: pink at odahoda dot de
WWW: http://www.odahoda.de/




ah, Thanks!

a was asking unicode equivalent... as you said, it''s code point 160, or
00A0.
http://en.wikipedia.org/wiki/List_of...ity_references

Xah
xa*@xahlee.org
a?? http://xahlee.org/
Benjamin Niemann wrote:

Xah Lee wrote:

sometimes i wish to add white space in <p> as to achived effects
similar to tab.

what should i do?

using empty image seems the sure way but rather complicated. (and
dosen''t change size with font) Woudl some of the space character in
unicode work? (my html files uses unicode)



How about &nbsp; (codepoint 160).

''tab'' is often used as a ''poor mans table'' in wordprocessing software - if
you have tabular data, use the table element.

An URL that shows what you are trying to achive would help both of us.

--
Benjamin Niemann
Email: pink at odahoda dot de
WWW: http://www.odahoda.de/




这篇关于在&lt; p&gt;中添加空格的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆