会员
周边
新闻
博问
闪存
赞助商
YouClaw
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Colin_W
博客园
首页
新随笔
联系
管理
订阅
2016年3月10日
关于CSS竖直垂直居中的方式
摘要: 第一种 适用于固定宽高,设置top和left为50%;然后设置margin left和margin top为width和height的一半即可 width: 100px; height: 100px; position: absolute; top: 50%; left: 50%; margin t
阅读全文
posted @ 2016-03-10 16:23 Colin_W
阅读(92)
评论(0)
推荐(0)
公告