开发者

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

开发者 https://www.devze.com 2023-04-03 10:22 出处:网络
I have been tasked to underline one or two items in a dropdown... is this possible and to have it display开发者_如何学编程 in IE?

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

精彩评论

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