会员
周边
捐助
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
sweeeper
博客园
首页
新随笔
联系
管理
订阅
2019年11月13日
div上下左右居中几种方式
摘要: 1、绝对定位(常用于登录模块)备注:前提条件div需要有宽高 2、margin负值备注:前提条件div需要有宽高 3、css3 transform备注:用于不确定当前div的宽度和高度 4、flex 布局方式 5、table-cell 方式
阅读全文
posted @ 2019-11-13 09:34 sweeeper
阅读(19236)
评论(0)
推荐(1)
编辑
公告