摘要:
【要求】:如何用 CSS 实现水平/垂直居中一个元素(相对于文档) 【实现】: ① margin + 相对定位(relative) // html 和 body 的高度默认为0,因此要先设置为100%,并且清除默认样式(margin:0; padding:0) html, body { height 阅读全文
posted @ 2016-05-13 18:05
Ruth92
阅读(267)
评论(0)
推荐(0)
Scoop It and Enjoy the Ride! 简书地址:http://www.jianshu.com/u/c817733cbef1
2016年5月13日
2016年5月11日
2016年5月7日
2016年5月6日
2016年5月5日
2016年4月27日
2016年4月24日