开发者

XUL element to break line

开发者 https://www.devze.com 2023-02-11 03:34 出处:网络
I define a label and set its value <bbox> <label id=\"notify\" value=\"Test\"/> </bbox>

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

精彩评论

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

关注公众号