margin:0 auto;在IE8里不再居中啦 程序代码
<style type="text/css">
body{text-align:center;width:100%;}
#wrap{
text-align:left;
width:560px;
margin:0 auto;
border:1px solid #333;
background-color:#ccc;
}
</style>
<div > 在所有浏览器中都有效的方法: <pre> 在所有浏览器中都有效的方法: 在所有浏览器中都有效的方法: 在所有浏览器中都有效的方法:
</pre>
</div>



相关文章:

  • 2021-05-13
  • 2021-07-21
  • 2022-12-23
  • 2022-12-23
  • 2021-09-17
  • 2021-07-02
  • 2022-03-05
  • 2021-06-25
猜你喜欢
  • 2021-11-10
  • 2021-12-10
  • 2021-10-01
  • 2021-07-23
  • 2022-12-23
  • 2021-11-23
  • 2021-08-11
相关资源
相似解决方案