会员
周边
众包
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
前端便当
Powered by
博客园
博客园
|
首页
|
新随笔
|
联系
|
订阅
|
管理
2019年12月17日
两种方式实现盒子水平垂直居中
摘要: 一:在知道宽高的情况下: <div style=" width:200px; height:200px; background: red; position: absolute; top: 0; bottom: 0; left: 0; right: 0; margin: auto; "></div>
阅读全文
posted @ 2019-12-17 17:29 前端便当
阅读(735)
评论(0)
推荐(0)
编辑