css - 为 ie6 调试灯箱 ul

标签 css internet-explorer internet-explorer-6 lightbox

除了一页之外,我已经完全调试了我的网站:

http://hqinternetsolutions.com/fullservice/movies.html

li 在 ie 6 或 7 中显示不正确,但在其他浏览器中工作正常。 html 非常简单:ul li 和 anchor 标记。 CSS 也很简单:

#moviegrid{
    width:560px;
    margin:20px auto;
    height:250px;

}

#moviegrid ul{
    list-style:none;
    margin:0;
    padding:0;
    display:inline;

}

#moviegrid li{
    padding:0;
    margin: 0;

    }

#moviegrid li img{
    background-color:#fff;
    padding:2px 2px 2px 2px;

}

#moviegrid li img:hover{
    background-color: #328f87;
    padding:2px 2px 2px 2px;
}

我做错了什么?!

最佳答案

您还需要添加 zoom:1 来触发 IE 的 hasLayout 标志:

#moviegrid li{
  padding:0;
  margin: 0;
  zoom: 1;
  display: inline;
}

关于css - 为 ie6 调试灯箱 ul,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1262528/

相关文章:

php - 我需要在不使用 JavaScript 的情况下验证我的表单

html - Internet Explorer 7 菜单换行

jquery - 如何正确定位css元素?

css - CSS动画中的小故障

image - .png图像无法在IE7,IE8中正确呈现

javascript - 在没有 SWFObject 的 IE6 中使用 jQuery 嵌入 YouTube 视频

javascript - Shadowbox 覆盖在 IE 6 中不透明

css - 样式没有适本地级联

jquery - 在 <select> <option> 中添加图像的最佳方式

jquery - jcrop 无法在 IE 上正常工作