div网页编排问题,请帮忙解决
left和right的网页居中?怎样让网页显示居中?main033大表格宽度我设定的是980px,可是显示的非常宽,这是怎么回事?css文件#main033{width:...
left和right的网页居中?怎样让网页显示居中?
main033大表格宽度我设定的是980px,可是显示的非常宽,这是怎么回事?
css文件
#main033 {width:980; border:1px solid #e0e0e0;}
#main033 #left{float:left; width:655px;}
#main033 #left .box1{float:left; width:650px; height:200px; border:1px solid #e0e0e0; padding:1px; margin-top:3px; margin-bottom:3px;}
#main033 #left .box1 ul{width:650px; padding:5px 8px;}
#main033 #left .box1 ul li{width:650px; line-height:23px; background:url(../img/dot.gif) 5px center no-repeat; text-indent:15px;}
#main033 #left .box1 ul a {text-decoration: underline;}
#main033 #right{float:left; width:320px; margin-left:6px; margin-top:3px;}
#main033 #right .box2{width:319px; height:1500px; border:1px solid #e0e0e0; padding:1px;}
网页文件
<div id="main033">
<div id="left">
<div class="box1"><ul>
<li><a href="#" target="_blank">百度最伟大</a></li>
<li><a href="#" target="_blank">百度最伟大</a></li>
<li><a href="#" target="_blank">百度最伟大</a></li>
<li><a href="#" target="_blank">百度最伟大</a></li>
<li><a href="#" target="_blank">百度最伟大</a></li>
<li><a href="#" target="_blank">百度最伟大</a></li>
<li><a href="#" target="_blank">百度最伟大</a></li>
<li><a href="#" target="_blank">百度最伟大</a></li></ul></div>
</div>
<div id="right">
<div class="box2">
</div>
</div>
</div> 展开
main033大表格宽度我设定的是980px,可是显示的非常宽,这是怎么回事?
css文件
#main033 {width:980; border:1px solid #e0e0e0;}
#main033 #left{float:left; width:655px;}
#main033 #left .box1{float:left; width:650px; height:200px; border:1px solid #e0e0e0; padding:1px; margin-top:3px; margin-bottom:3px;}
#main033 #left .box1 ul{width:650px; padding:5px 8px;}
#main033 #left .box1 ul li{width:650px; line-height:23px; background:url(../img/dot.gif) 5px center no-repeat; text-indent:15px;}
#main033 #left .box1 ul a {text-decoration: underline;}
#main033 #right{float:left; width:320px; margin-left:6px; margin-top:3px;}
#main033 #right .box2{width:319px; height:1500px; border:1px solid #e0e0e0; padding:1px;}
网页文件
<div id="main033">
<div id="left">
<div class="box1"><ul>
<li><a href="#" target="_blank">百度最伟大</a></li>
<li><a href="#" target="_blank">百度最伟大</a></li>
<li><a href="#" target="_blank">百度最伟大</a></li>
<li><a href="#" target="_blank">百度最伟大</a></li>
<li><a href="#" target="_blank">百度最伟大</a></li>
<li><a href="#" target="_blank">百度最伟大</a></li>
<li><a href="#" target="_blank">百度最伟大</a></li>
<li><a href="#" target="_blank">百度最伟大</a></li></ul></div>
</div>
<div id="right">
<div class="box2">
</div>
</div>
</div> 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询