如何让treeview的每个节点看起来没有下划线?
解决方案 »
- 关于后台输出HMTL代码的问题!
- asp.net如何时间边循环边输出到label中
- GridView行被选中的问题,待解决、、、、、
- asp+access的网站模版 可否拿来进行ASP.NET(C#)的2次开发?
- 初学者问题
- 为什么我用了资源文件,还是只能显示中文??
- DataGrid单元格过长自动截断的问题?
- 急~~~~~~~~~~~~~~~~~读取数据为null
- 又有问题了
- DataBinder.Eval:“System.Data.DataRowView”不包含名称为 monery 的属性
- aspxgridveiw的问题,目前公司在用devexpress的aspxgridveiw,碰到几个问题
- 判断集合中是否含有指定数或者数组》?
<asp:TreeView ID="myRight" runat="server" Style="margin-bottom: 55px" Width="118px"
ImageSet="Simple" ShowLines="True" ShowCheckBoxes="All" OnTreeNodeCheckChanged="myRight_TreeNodeCheckChanged">
<ParentNodeStyle Font-Bold="False" />
<NodeStyle Font-Names="Tahoma" Font-Size="10pt" HorizontalPadding="0px" NodeSpacing="0px"
VerticalPadding="0px" />
</asp:TreeView>
2.如果控件本身没有控制显示下划线,所有控件的呈现全是html,看看代码的格式,用CSS解决这个下划线
<style type="text/css">
<!--
a:link { text-decoration: none;color: blue}
a:active { text-decoration:blink}
a:hover { text-decoration:underline;color: red}
a:visited { text-decoration: none;color: green}
-->
</style>
其中: a:link 指正常的未被访问过的链接; a:active 指正在点的链接; a:hover 指鼠标在链接上; a:visited 指已经访问过的链接; text-decoration是文字修饰效果的意思; none参数表示超链接文字不显示下划线