css 層置中

來源:互聯網
上載者:User
<html><head><title>..</title></head><style>body {TEXT-ALIGN: center;}  #wrappera { width:1006px; height:300px; margin:0px auto; background-color:#ffcc33}#wrapperb{clear: both; margin: 0 auto 0px; min-height: 300px;padding: 0;width: 1006px;overflow:hidden; background-color:#ffcc33}</style><body><div id="containera"><div id=wrappera>123</div><br><div id=wrapperb>234</div></div></body></html>

 

相關文章

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.