English 中文(简体)
CSS 消除Stretching Divs: 因特网探索者Vsook/Firefox
原标题:CSS Padding Stretching Divs: Internet Explorer Vs. Chrome/Firefox

Hello StackOverflow community, I have run into a problem that quite frankly is baffling me and I am surprised that I haven t run into this problem sooner.

如果我忽略了一个简单的问题,则道歉——我已经做了大量谷歌和StackOverflow搜索,但没有结果。

我的问题是,在将dding子带给离婚时,该集装箱被具体规定的 Firefox/Chrome所吞 stretch,但在IE。 我已看到关于增加“显示:在线;”或“显示:在线锁;”以解决这个问题的建议,但这对我产生了影响。

Here is an rendered example: http://img825.imageshack.us/img825/7190/testpic.jpg

例如:

<html>
<head>

<style type="text/css">
#div1 {
background-color:black;
width:400px;
height:300px;
padding-top:10px;
}

#div2 {
background-color:red;
width:400px;
height:280px;
padding-top:10px;
}

#div3 {
background-color:blue;
width:400px;
height:260px;
padding-top:10px;
}

#div4 {
background-color:green;
width:400px;
height:200px;
}
</style>

</head>
<body>

<div id="div1">
<div id="div2">
    <div id="div3">
    </div>
</div>
</div>
<div id="div4">
</div>

</body>

</html>

我失踪了什么? 希望得到任何帮助。

谢谢。

最佳回答

A<! DOCTYPE ... > 是你再次失踪的。 IE正在基尔斯模式中提供,箱式是边界箱而不是内容箱。

问题回答

暂无回答




相关问题
CSS working only in Firefox

I am trying to create a search text-field like on the Apple website. The HTML looks like this: <div class="frm-search"> <div> <input class="btn" type="image" src="http://www....

image changed but appears the same in browser

I m writing a php script to crop an image. The script overwrites the old image with the new one, but when I reload the page (which is supposed to pickup the new image) I still see the old one. ...

Firefox background image horizontal centering oddity

I am building some basic HTML code for a CMS. One of the page-related options in the CMS is "background image" and "stretch page width / height to background image width / height." so that with large ...

Separator line in ASP.NET

I d like to add a simple separator line in an aspx web form. Does anyone know how? It sounds easy enough, but still I can t manage to find how to do it.. 10x!

热门标签