摘要: (1)知道子元素的宽高 <!--父元素相对定位--> <!--子元素绝对定位--> .child{ position:absolute; top:50%; left:50%; margin-left:-50px; margin-top:-50px; } (2)不考虑子元素的宽高 <!--父元素不能有 阅读全文
posted @ 2020-03-12 13:53 俄罗斯方块 阅读(1197) 评论(0) 推荐(0)