C#中linklable的下划线怎么去掉

来源:百度知道 编辑:UC知道 时间:2024/06/19 16:09:56
有知道到告诉下

用CSS来控制

这个是控制页面所有链接样式的
a:link {color: #333333;text-decoration: none;}
a:visited {text-decoration: none;color: #414141;}
a:hover {text-decoration: underline;color: #FD5720;}
a:active {text-decoration: none;color: #FD6431;}
如果针对某一个写样式
A.white2:link {color: #000; text-decoration: none}
A.white2:active{ color: #000; text-decoration: none}
A.white2:visited{ color: #000; text-decoration: none}
A.white2:hover { color: #ff0000;text-decoration: underline }

linklable引用时classname="white2"就可以了

用样式表CSS

把下面的代码放到html(或aspx)页面的<head></head>标签里
<style type="text/css">
.a{text-decoration:none;}
</style>

然后在linklable标签(有这个东西吗?是不是LinkButton啊)的里边加上样式表引用:<linklable class="a">

PS:如果是标签就用class,如果是控件的话就用CssClass,说实话,我真的没用过linklable这个东东,也从来没见过 ⊙﹏⊙b汗。。。。。
不过只要是去掉下划线,都可以用这种方法

晕倒, 既然你不要下划线, 你用 LINKLABEL 干么?

直接