首页 > 代码库 > 块居中

块居中

div居中

Margin:0 auto;

Text-align:center

 

关于居中使用css为:position:fixed;left:50%;top:50%;margin-left:width/2;margin-top:height/2;

对于ie6,只能把position:改成absolute;

http://m.blog.csdn.net/article/details?id=11579669

http://www.ihref.com/read-17539.html

http://m.helloweba.com/view-93.html

http://www.haorooms.com/post/css_div_juzhong

http://m.baidu.com/from=844b/bd_page_type=1/ssid=0/uid=0/pu=usm%400%2Csz%401321_1001%2Cta%40utouch_2_2.2_3_533/baiduid=6B72BAEAD4FE2709A9C3A6DED15EF365/w=0_10_DIV%E6%B0%B4%E5%B9%B3%E5%9E%82%E7%9B%B4%E5%B1%85%E4%B8%AD/t=wap/l=3/tc?ref=www_utouch&lid=9193298424183876983&order=6&vit=osres&tj=www_normal_6_0_10_title&m=8&srd=1&dict=25&title=CSS%E6%95%99%E7%A8%8B%3Adiv%E5%9E%82%E7%9B%B4%E5%B1%85%E4%B8%AD%E7%9A%84N%E7%A7%8D%E6%96%B9%E6%B3%95%5B%E8%BD%AC%5D-chuncn-%E5%8D%9A%E5%AE%A2%E5%9B%AD&sec=15036&di=d716663c4a94f9aa&bdenc=1&nsrc=http://www.mamicode.com/IlPT2AEptyoA_yixCFOxXnANedT62v3IEQGG_ytK1DK6mlrte4viZQRAYTfaLniMZpPPxXCBeMZHdWGdWWQm7RpOrxpps89hbX8kgPq3ghK3GhUPfhsw4tv3

 

块居中