当链接徘徊over..whats错在下面的CSS div的背景图片的位置没有变化? [英] Div's background Image's position is not changing when links are hovered over..whats wrong in the following css?

查看:94
本文介绍了当链接徘徊over..whats错在下面的CSS div的背景图片的位置没有变化?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

CSS和标记

推荐答案

我我不知道你是如何处理在code中的中继器的后面,我用这个中继器和背景没有变化,而徘徊在链接:

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>&nbsp;</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.

这篇关于当链接徘徊over..whats错在下面的CSS div的背景图片的位置没有变化?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆