当前位置:asp编程网>技术教程>Css3教程>  正文

div position fixed 居中的解决方法

2014-10-28 13:52:26   来源:网络    作者:佚名   浏览量:5163   收藏
<style type="text/css">
.main{
border:1px solid #f00;
position:fixed;
height:60px;
left:0px;
right:0px;
width:706px;
margin-left:auto;
margin-right:auto;
}
body{
height:2000px;
}
</style>
<div class="main"></div>

关于我们-广告合作-联系我们-积分规则-网站地图

Copyright(C)2013-2017版权所属asp编程网