开发者

ie6 Sliding Doors problem rollover

开发者 https://www.devze.com 2023-02-16 12:57 出处:网络
I have an <a> tag which uses the css sliding doors technique to show the rollover state a.task_link {

I have an <a> tag which uses the css sliding doors technique to show the rollover state

a.task_link {
width:220px;
height:241px;
float:left;
position:relative;
margi开发者_Go百科n-right:20px;
display:block;
text-decoration:none;



}


a#task  {
    background:url(/images/task.jpg) no-repeat;

    }

a#_task:hover {
    background: url(/images/task.jpg) -220px 0px no-repeat;

    }

The problem is with ie6 I get a flashing/blinking of the background image, any solution to this?

Thanks,

J.


Add position:relative or zoom:1 or overflow:hidden or something that will trigger layout without breaking usability.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号