开发者

DropDownList in .NET WebApp - Is it possible to underline one or two items in list?

I have been tasked to underline one or two items in a dropdown... is this possible and to have it display开发者_如何学编程 in IE?

Any advice, links, sample would be greatly appreciated.


You may checkout the following plugin.


You will probably have to hand roll your own javascript solution as this is not possible in the standard html element it produces.

perhaps this jQuery plugin would do the trick: http://www.marghoobsuleman.com/jquery-image-dropdown


You can try the following, but not all styles work on list items:

DropDownList1.Items[0].Attributes.CssStyle.Add("text-decoration", "underline");
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜