摘要:
1-如何设置一个元素垂直居中?第一种方法: div.box{ weight:200px; height:400px; <!--把元素变成定位元素--> position:absolute; <!--设置元素的定位位置,距离上、左都为50%--> left:50%; top:50%; <!--设置元素 阅读全文
posted @ 2021-02-20 18:28
haoyueyong
阅读(60)
评论(0)
推荐(0)
2021年2月20日