br或XUL中的换行符 [英] br or newline in XUL
本文介绍了br或XUL中的换行符的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何将文本移动到XUL中没有 html:br
的新行?在XUL中是否有换行符或类似的东西?
< description>
某些
文本
这里
< / description>
解决方案
< description>
元素可以表示换行符,与< html:p>
相同。您只需使用 空格 CSS属性
:
< description style = white-space:pre-wrap;>
某些
文本
这里
< / description>
How to move text to a new line in XUL without html:br
? is there a newline character in XUL or something like this?
<description>
Some
text
here
</description>
解决方案
The <description>
element can respect line breaks, the same as <html:p>
. You simply have to use the white-space
CSS property:
<description style="white-space: pre-wrap;">
Some
text
here
</description>
这篇关于br或XUL中的换行符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文