码迷,mamicode.com
首页 > Web开发 > 详细

CSS0017: DIV 上下左右都居中样式

时间:2020-09-17 23:58:08      阅读:61      评论:0      收藏:0      [点我收藏+]

标签:border   idt   text   ali   class   居中   code   enter   width   

1,

.container {
  box-sizing: border-box;
  max-width: 1024px;
  padding: 20px;
  text-align: center;
}

 

CSS0017: DIV 上下左右都居中样式

标签:border   idt   text   ali   class   居中   code   enter   width   

原文地址:https://www.cnblogs.com/eliteboy/p/13660989.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!