摘要: 第一种方法: div.box{ weight:200px; height:400px; <!--把元素变成定位元素--> position:absolute; <!--设置元素的定位位置,距离上、左都为50%--> left:50%; top:50%; <!--设置元素的左外边距、上外边距为宽高的负 阅读全文
posted @ 2016-12-04 22:40 林思南 阅读(36314) 评论(2) 推荐(3) 编辑