开发者

XUL element to break line

I define a label and set its value

<bbox>
  <label id="notify" value="Test"/>
</bbox>

The width of the label is fix so if the value (text) is longer then the width I want the line to break. I tried it with css doing

word-wrap:break word; 

But th开发者_如何学Gois does not work. Is there a XUL element that provides such a feature or do you know an other technique?


You can do this with either the <label> or the <description> element, but you need to use its textContent rather than its value.

<label id="notify">Test</label>


I believe a xul description is what you want.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜