链接按钮上的CSS样式 [英] CSS styling on Linkbuttons
本文介绍了链接按钮上的CSS样式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在我的母版页上列表视图中的td内的链接按钮上设置样式
当我将这个css类应用于td时:
< pre lang =CSS>。 mylink
a
{
text-decoration : none;
font-size : 12px;
}
a:悬停
{
text-decoration : none;
font-大小 : 11px;
font-weight : 大胆;
}
像这样:
< td class = mylink >
< asp:LinkButton ID = link runat = server > 某些文字< / asp:LinkButton >
< / td >
然后呢正在影响我的母版页上的所有链接以及具有此母版页的所有子页面。
有什么不对?帮助我...
解决方案
。 mylink a
{
text-decoration : 无;
font-size : 12px;
}
。 mylink a:hover
{
text-decoration : 无;
font-size : 11px;
font-weight : 粗体;
}
Yo你错过了班级选择器
a:悬停
{
text-decoration : none;
font-size : 11px;
font-weight : 粗体;
}
.mylink a:悬停
{
text-decoration : none;
font-size : 11px;
font-weight : 粗体; 温泉n>
}
hi i'm working on styling on linkbuttons which are inside td in listview in my master page
when i'm applying this css class to td:
.mylink
a
{
text-decoration: none;
font-size: 12px;
}
a:hover
{
text-decoration: none;
font-size: 11px;
font-weight: bold;
}
like this:
<td class="mylink">
<asp:LinkButton ID="link" runat="server">some text</asp:LinkButton>
</td>
then it is affecting all links on my master page and all child pages with this master page.
what is wrong? help me...
解决方案
.mylink a { text-decoration: none; font-size: 12px; } .mylink a:hover { text-decoration: none; font-size: 11px; font-weight: bold; }
You missed Class Selector
a:hover { text-decoration: none; font-size: 11px; font-weight: bold; } .mylink a:hover { text-decoration: none; font-size: 11px; font-weight: bold; }
这篇关于链接按钮上的CSS样式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文