会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
王国帅
博客园
首页
新随笔
联系
订阅
管理
2018年3月6日
元素水平居中、垂直居中
摘要: 元素水平居中: 1.行内元素:给父元素设为text-align:center; 块元素:inline-block+父元素text-align:center 2.块元素:margin-left、margin-right设为auto 3.浮动元素: 父元素:position:relative; left
阅读全文
posted @ 2018-03-06 14:29 王国帅
阅读(240)
评论(0)
推荐(0)
编辑
公告