Weird IE8 layout glitch - why does the body background disappear?

后端 未结 2 1118
旧巷少年郎
旧巷少年郎 2020-12-03 18:35

This is one of those \"what the bloody hell\" problems that I don\'t even know how to approach.

I have this website: http://www.mojalbum.com and if you open it in IE

相关标签:
2条回答
  • 2020-12-03 18:49

    I've reverted the jQuery version back to 1.6 (from 1.6.1). This fixed the issue.

    0 讨论(0)
  • 2020-12-03 18:52

    The answer below is now mostly obsolete, because the problem has been fixed as of jQuery 1.6.2, which has been out for a while now.

    If you're having this problem, just upgrade jQuery to the newest available version.


    Edit:

    There's something wrong with jQuery!

    If I switch to 1.6.1 hosted from Google, it still breaks: http://jsbin.com/epata3/3

    If I move the script to inside the head, it works: http://jsbin.com/epata3/4

    And you're right, everything works as expected with 1.6.0: http://jsbin.com/epata3/7

    ???


    There's something wrong with your jQuery include.

    This simple test case breaks in IE8 in exactly the same way:

    See in IE8: http://jsbin.com/exomi4

    The background flashes red, then turns white.

    <!DOCTYPE html>
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title></title>
    
    <style>
    body {
        background-color: red;
    }
    </style>
    
    </head>
    <body>
    <script type="text/javascript" src="http://www.mojalbum.com/js.php?f=core/jquery_1.6.1.js,&c=v2"></script>
    </body>
    </html>
    
    0 讨论(0)
提交回复
热议问题