[英]IE7 cutting off image
Hi all I have 3 divs with rollover images inside them stacked vertically inside my main content div. 大家好我有3个div与里面的翻转图像垂直堆叠在我的主要内容div。 IE7 is chopping off about three quarters of the bottom div and I can't figure out why.
IE7正在削减底部div的四分之三,我无法弄清楚原因。 It displays perfectly in all other browsers (even IE6) but IE7 just won't display properly.
它在所有其他浏览器(甚至IE6)中都能完美显示,但IE7无法正常显示。 This is my first website so I still have a lot to learn.
这是我的第一个网站,所以我还有很多东西需要学习。 I've managed to fix the other IE bugs but just can't figure this one out.
我已经设法修复了其他IE错误,但只是无法弄清楚这个。 Any help appreciated!
任何帮助赞赏!
.main_content {
float: left;
width: 816px;
background-image: url(Images/evokedesign_bg_tile.png);
background-repeat: repeat-y;
overflow: hidden;
}
.portfolio_buttons {
float: left;
width: 634px;
}
Site link: http://evokedesignstudio.com.au/Portfolio.html 网站链接: http : //evokedesignstudio.com.au/Portfolio.html
Now you posted a link to your live site, I found the answer very quickly: 现在您发布了一个指向您的实际网站的链接,我很快就找到了答案:
.gallery
, remove the height: 400px
rule. .gallery
,删除height: 400px
规则。 This fixes IE7, and nothing changes in IE8/other browsers. 这修复了IE7,IE8 /其他浏览器没有任何变化。
You have got your .page_container
set to a fixed height of 730px . 你有你的
.page_container
设置为730px的固定高度。
Try updating the CSS to 尝试将CSS更新为
.page_container {
padding: 0px;
min-height: 730px;
height:730px;
}
Same with the .gallery
as @thirtydot said. 与@thirtydot说的
.gallery
相同。 Either remove the height all together or update it to min-height and height below (see above example). 一起移除高度或将其更新为下方的最小高度和高度(参见上面的示例)。
By placing the height
below the min-height
in your stylesheet, any browser that doesn't recognise the min-height
tag (IE6) will then register the height
below it as a backup. 通过将
min-height
放在样式表中的min-height
height
以下,任何无法识别min-height
标记(IE6)的浏览器都会将其下方的height
注册为备份。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.