+ -
当前位置:首页 → 问答吧 → 火狐浏览器页面居中显示

火狐浏览器页面居中显示

时间:2011-03-29

来源:互联网

<style type="text/css">
body{
 margin:0; 
 padding:0;
 text-align:center;
 font-size:10pt;
}
#content{
 margin:auto;
 border: solid #000000 1px;
 height:610px; 
 width:1008px;
 background-image:url(images/bg_hjly.jpg); background-repeat:no-repeat;}
</style>

<body>
  <div id="content">
  <div style=" height:80px; width:1000px; float:left;">
  </div>
  <div style="height:530px; float:left; width:998px;">
  <div style="height:520px; float:left; width:330px;">
  </div>
  <div style="height:324px; float:left; width:660px;">
  </div>
  <div style="height:206px; float:left; width:660px;">
   
  </div>
   
  </div>
   
  </div>
</body>
这段代码在火狐浏览器中没有显示居中 在ie下显示居中 如何实现ie 火狐页面居中显示

作者: cwx09890307   发布时间: 2011-03-29

指点下吧 急···· 虽然分很少 大家帮个忙吧

作者: cwx09890307   发布时间: 2011-03-29

body{
 margin:0;  
 padding:0;
 text-align:center;
 font-size:10pt;
}
margin:0;改為margin:0 auto;

作者: xiaoxiaoo7   发布时间: 2011-03-29

....试了下,不用改也可以居中显示类。。。。 - -|||难道版本问题..俺的FF有更新到最新

作者: leo_xiaoxiaojun   发布时间: 2011-03-29

热门下载

更多