会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
franeu
博客园
首页
新随笔
联系
订阅
管理
2016年2月23日
如何利用css让元素居中
摘要: 给元素打上top:50%;left:50%以及margin-top:一半的height值的的负数; margin- left:一半的weight值的负数。整理一下之后,可能你会给你的子元素写上这样的css {width:100px;height:80px;position:absolute;top:
阅读全文
posted @ 2016-02-23 21:53 franeu
阅读(208)
评论(0)
推荐(0)