求解这个DIV 宽度设置为1024是什么意思?

来源:百度知道 编辑:UC知道 时间:2024/05/18 20:42:08
<div style=" width:1024px; height:108px;">
<iframe src="adminFrame/adminTop.html" class="c1" scrolling="no" frameborder="0"></iframe>
</div>
<div style="width:1024px;">
<div style="width:180px; height:800px; float:left">
<iframe src="adminFrame/adminLeft.html" class="c2" scrolling="no" frameborder="0" name="left"></iframe>
</div>
<div style="width:800px; height:800px; float:left">
<iframe src="adminFrame/adminRight.html" class="c3" scrolling="auto" frameborder="0" name="right"></iframe>
</div>
</div>

*{
margin:0px auto;
}
.c1{
width: 100%;
height: 108px;
}
.c2{
width: 180px;
height: 800px;
}

就是表示这个div的宽度是1024
不过网页的标准宽度是1003
弄个1024宽的在有些电脑上会出现水平滚动条

CayMax 是标准的回答 宽度在显示器1024的情况下只有1003-1004(部分显示器可能有差别)建议宽度使用100%

因为一般的显示屏都是用的1024*768的..
则你设置的时候.. 尽量小10px左右..