首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >在IE中显示奇怪的Div -有一个惊喜

问在IE中显示奇怪的Div -有一个惊喜
EN

Stack Overflow用户
提问于 2009-07-14 08:29:16
回答 1查看 173关注 0票数 0

​

代码语言:javascript
复制
body {
    background: #9cdcf9 url(/images/left_cloud.png) bottom left no-repeat;
    font-family:\"Trebuchet MS\";
    padding:0;
    margin:0;
    border:0;
}
#cloud-container {
    width: 100%;
    background: url(/images/right_cloud.png) bottom right no-repeat;
    height: 100%;
}
#plane-container {
    width: 100%;
    background: url(/images/plane.png) top right no-repeat;
    height: 20%;
}
#footer1 {
    	width:100%;
    	height: 180px;
    	background: url(/images/footer.png) bottom center repeat-x;
    	vertical-align: bottom;
    	text-align: center;
    	color: #fff;
    	text-shadow: #555 1px 1px 1px;
    	font-size: 11px;
}

​

在FF中完美工作,但使页面向左倾斜和div重叠-有人知道它在css中IE不喜欢的是什么吗?-有点不太可能,但是嘿...

EN

回答 1

Stack Overflow用户

发布于 2009-07-14 20:11:06

虽然没有html或图片很难从你的问题中辨别出来,但我认为你的问题的答案可能是浮动你的div。

代码语言:javascript
复制
#cloud-container, #plane-container, #footer1{
    float:left;
}

您可能还想查看common IE CSS issues的此页面

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/1124162

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档