br or newline in XUL

时间秒杀一切 提交于 2019-12-08 08:17:04

问题


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>

回答1:


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>


来源:https://stackoverflow.com/questions/10031215/br-or-newline-in-xul

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!