链接悬停时Div的背景图像的位置没有改变...以下CSS出了什么问题? [英] Div's background Image's position is not changing when links are hovered over..whats wrong in the following css?
本文介绍了链接悬停时Div的背景图像的位置没有改变...以下CSS出了什么问题?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
推荐答案
我不确定您如何在后面的代码中处理中继器,我使用了该中继器,并且在悬停链接时背景确实发生了变化:
I' am not sure how are you handling the repeater in your code behind, I used this repeater and the background did change while hovering the links:
<asp:Repeater runat="server" ID="rpt1">
<ItemTemplate>
<li>
<a href="#" class="mySprite id<%# ((int)DataBinder.Eval(Container,"ItemIndex")) % 6 + 1%>">
<font color="white"><%#Eval("Name")%></font><div> </div></a>
</li>
</ItemTemplate>
</asp:Repeater>
PS:我使用了您发布的最高级的"CSS和标记",并在IE上对其进行了测试.
PS: I used the top most "CSS and Mark up" you posted and tested it on IE.
这篇关于链接悬停时Div的背景图像的位置没有改变...以下CSS出了什么问题?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文