2012-04-05 51 views
1

如何將文本移動到XUL中的新行沒有html:br? XUL中是否有換行符或類似的東西?br或XUL中的換行

<description> 
    Some 
    text 
    here 
</description> 

回答

3

<description>元件可以尊重換行符,相同<html:p>。您只需使用white-space CSS property

<description style="white-space: pre-wrap;"> 
    Some 
    text 
    here 
</description>