方法一 待居中元素具有确定的高度和宽度 css: .parent{ positive:relative; } .child{ width:200px; height:200px; positive:absolute; left:50%; top:50%; margin-left:-100px; <! Read More
posted @ 2016-03-16 17:20 bottle_小姐 Views(329) Comments(0) Diggs(0)