【发布时间】:2014-03-31 14:37:44
【问题描述】:
我的样式表中有一些链接样式:
a.whiteLinks {
color: #FFFFFF;
text-decoration: none;
}
a.blueLinks {
color: #0076AC;
text-decoration: none;
}
a.whiteLinks:hover {
color: #5397AD;
text-decoration: none;
}
a.blueLinks:hover {
color: #5397AD;
text-decoration: none;
}
我有以下asp:BulletedList
<asp:BulletedList DisplayMode="HyperLink" runat="server" ID="blFirst" ClientIDMode="Static">
<asp:ListItem Value="allergy.aspx">Allergy and Immunology</asp:ListItem>
<asp:ListItem Value="">Anesthesiology</asp:ListItem>
<asp:ListItem Value="">Breast Surgery</asp:ListItem>
</asp:BulletedList>
我可以在哪里进行编辑,以便项目符号列表中的链接使用blueLink 样式而不是默认样式?
我尝试在BulletedList 中添加CssClass="blueLinks",但没有任何影响。
【问题讨论】:
标签: html asp.net css bulletedlist