DIV CSS 置中代碼(以及靠右)

來源:互聯網
上載者:User

DIV置中:

 

<div style="margin-left:auto;margin-right:auto;width:760px;background-color:Silver;">DIV置中 CSS 代碼 <a href="http://jihua.cnblogs.com">jihua.cnblogs.com</a></div>

 

DIV靠右:

 

<div style="margin-left:auto;margin-right:2px;width:760px;background-color:Aqua;">DIV靠右 CSS 代碼 <a href="http://jihua.cnblogs.com">jihua.cnblogs.com</a></div>

 

DIV預設靠左:

 

<div style="width:760px;background-color:Fuchsia;">DIV靠左代碼 <a href="http://jihua.cnblogs.com">jihua.cnblogs.com</a></div>

 

 

 

DIV置中 CSS 代碼 jihua.cnblogs.comDIV靠右 CSS 代碼 jihua.cnblogs.comDIV靠左代碼 jihua.cnblogs.com
相關文章

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.