火狐浏览器页面居中显示
时间: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 火狐页面居中显示
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;
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
相关阅读 更多
热门阅读
-
office 2019专业增强版最新2021版激活秘钥/序列号/激活码推荐 附激活工具
阅读:74
-
如何安装mysql8.0
阅读:31
-
Word快速设置标题样式步骤详解
阅读:28
-
20+道必知必会的Vue面试题(附答案解析)
阅读:37
-
HTML如何制作表单
阅读:22
-
百词斩可以改天数吗?当然可以,4个步骤轻松修改天数!
阅读:31
-
ET文件格式和XLS格式文件之间如何转化?
阅读:24
-
react和vue的区别及优缺点是什么
阅读:121
-
支付宝人脸识别如何关闭?
阅读:21
-
腾讯微云怎么修改照片或视频备份路径?
阅读:28