代码如下:
<html><head>
<style>
*
{
margin: 0px;
padding: 0px;
border: 0px none;
}
#left
{
float: left;
height: 90%;
width: 100px;
margin: 0px;
padding: 0px;
border: solid 1px Black;
}
#right
{
height: 90%;
margin: 0px;
padding: 0px;
border: solid 1px Black;
}
</style></head><body><div id="left">
asdasd<br />
asdasd<br />
asdasd<br />
</div>
<div id="right">
asdasd<br />
asdasd<br />
asdasd<br />
</div>
这2个div在IE6中是用白色的柱子隔开的。在 FireFox 中没问题(div 没有分开)。你能给我一些建议来在 IE6 中解决这个问题吗?
最佳答案
这是一个已知的 IE6 错误。最好在这里阅读:http://www.positioniseverything.net/explorer/threepxtest.html
一个快速的解决方法是将两个 div 都 float 到左侧(但这并不总是适用)。
关于css - IE6 中的奇怪边距,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3995719/