Trouble with CSS rollover in Chrome - image disappears

二次信任 提交于 2019-12-25 05:33:34

问题


Though in 1996 I had one of the top 5 Leonardo DiCaprio web-sites - I'm no programmer. So I tried using 4ormat templates to make my life easier but they didn't have an option for image rollovers so I had to change the css and of course its causing problems for me. It works fine in every browser - sometimes it even works fine in chrome! But if you load it a bunch the first few images on the page will load and then disappear! Its been great in every other browser! What am I doing wrong??

http://sarahcrump.4ormat.com/retouching

the code looks like this:

    .rollover a{
    display: block;
    text-indent: -9999px;
    margin: auto auto auto auto;
    cursor: pointer;
    outline: transparent solid 0px;

    }    


    #erilynn a{
    height: 550px; 
    width: 393px; 
    background: url('http://4ormat-asset.s3.amazonaws.com/resources/1327226/0x550_1329240086.jpg') no-repeat left top;
    }
    #erilynn a:hover{
    background-position:  -393px;
    }

I know other people have run into this problem as well but have yet to discover a solution that works.. Anyone know whats up?


回答1:


If you are using dev channel of Chrome, this seems to be a bug in Chrome (Webkit more specifically) than in your code.

You can check the bug report for Chrome at http://code.google.com/p/chromium/issues/detail?id=111218

I have personally hit this problem few weeks ago in my code and sadly couldn't find a workaround.



来源:https://stackoverflow.com/questions/9415517/trouble-with-css-rollover-in-chrome-image-disappears

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!