linkbutton的样式可以和<a href=""></a>一样的调用a:hover样式
如:
-----------------------------------------------------------------<a 标签超链接样式
#selectmod a
{
color:Green ;
text-decoration :none;
}
#selectmod a:hover
{
color:Red ;
text-decoration :underline;
background :#ffcccc;
}
------------------------------------------------------------------linkbutton样式
#ScanWeb a
{
color:Green ;
text-decoration :none;
}
#ScanWeb a:hover
{
color:Red ;
text-decoration :underline;
background :#ffcccc;
}
-----------------------------------------------------------------------<a 标签超链接前台代码
<span style ="font-size:15px; margin-left :7px;" id ="selectmod">
<a href ="javascript:OpenWin('/Manager/enterpriseManager/Mod/SelectMode.aspx','750','720') " style =" margin-left :7px; line-height :2; margin-bottom :9px;" runat ="server">点击选择网站模板</a></span>
-----------------------------------------------------------------------linkbutton前台代码
<span style ="font-size:15px; margin-left :7px;" id ="ScanWeb">
<asp:LinkButton ID="lbt_ScanWeb" runat="server"
οnclick="lbt_ScanWeb_Click">点击预览网站</asp:LinkButton> </span>
一个偶然的机会发现linkbutton的样式居然可以和<a ></a>这样的超链接一样用a:hover,有点疑问