开发者

How do you customize the font in a GWT list box?

Using GWT 2.3 and new to all this..

How to you make the word "Select..." in italic and gray below? I tried to setStyleName, but settings are ignor开发者_运维知识库e.

Thanks, Bob

// show word select in am empty list box.     nestUnderListBox.addItem("Select...");

// This line did not make "Select..." gray italic.

nestUnderListBox.setStyleName("nextUnderListBoxInitial");


what you are trying to do isn't possible with CSS!

See styling HTML form list box with CSS or jQuery for other Ideas!


That's not possible with ListBox.

But, you can use something like CellList (GWT-Showcase) and re-develop the functionality from ListBox.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜