DataList内部链接样式的问题,被困扰了1个多小时了
我用的是Theme的StyleSheet,其他的都style都可以应用,但是就是到了DataList里面的链接怎么都不能用
页面的DataList render出来的是这样
<a href="catalogs.aspx" class="discoun">BUMPER</a>
<asp:DataList ID="dlCatalogs" runat="server" RepeatColumns="4" Width="500px" Height="800px" CellSpacing="30" CssClass="discoun" >
<ItemTemplate>
<%--<asp:HyperLink NavigateUrl="#" runat="server" CssClass="dlCatalogs" ><%#Eval("CategoryName") %></asp:HyperLink>--%>
<asp:Image ImageUrl='<%# ((string)Eval("ImageFile")) == null ? "~/images/placeholder-80.gif":"~/CategoryImages/thumbnail/"+Eval("ImageFile") %>' runat="server" ID="cateImg" />
<br />
<a href="catalogs.aspx" runat="server" class="discoun"><%#Eval("CategoryName") %></a>
</ItemTemplate>
</asp:DataList>
CSS定义
a.discoun:link
{
color:Green;
}
这是里面写的,和html得到的结果,就是不显示效果。请各位朋友指教一下
页面的DataList render出来的是这样
<a href="catalogs.aspx" class="discoun">BUMPER</a>
![](/Images/OutliningIndicators/None.gif)
![](/Images/OutliningIndicators/None.gif)
![](/Images/OutliningIndicators/None.gif)
![](/Images/OutliningIndicators/None.gif)
![](/Images/OutliningIndicators/None.gif)
![](/Images/OutliningIndicators/None.gif)
![](/Images/OutliningIndicators/None.gif)
![](/Images/OutliningIndicators/None.gif)
![](/Images/OutliningIndicators/None.gif)
![](/Images/OutliningIndicators/None.gif)
![](/Images/OutliningIndicators/None.gif)
![](/Images/OutliningIndicators/None.gif)
![](/Images/OutliningIndicators/None.gif)
![](/Images/OutliningIndicators/None.gif)
![](/Images/OutliningIndicators/None.gif)
![](/Images/OutliningIndicators/None.gif)
CSS定义
![](/Images/OutliningIndicators/None.gif)
![](/Images/OutliningIndicators/ExpandedBlockStart.gif)
![](/Images/OutliningIndicators/InBlock.gif)
![](/Images/OutliningIndicators/ExpandedBlockEnd.gif)
![](/Images/OutliningIndicators/None.gif)
这是里面写的,和html得到的结果,就是不显示效果。请各位朋友指教一下