/* 页面的大框架 */
.mainbox{ clear:both; margin:0px auto; width:970px;}
.leftbox{ float:left; text-align:left; width:726px;}
.rightbox{ float:right; text-align:center; margin-left:3px; width:225px; text-align:left;} 
 说明:clear:both:不允许有浮动对象,margin:0px auto:示上下边距为0,左右为自动,因此该层就会自动居中了,float:left:对象浮在左边,margin-left表示左外边距3px。

相关文章:

  • 2021-12-09
  • 2022-12-23
  • 2021-06-14
  • 2021-04-28
  • 2021-05-07
  • 2021-12-30
猜你喜欢
  • 2022-01-19
  • 2021-12-07
  • 2021-09-23
  • 2022-12-23
  • 2021-12-28
  • 2021-08-27
  • 2022-02-05
相关资源
相似解决方案