利用padding-top:100%, 使高度和宽度一致,然后利用绝对定位,定位到父元素.
CSS改写宽高一致的正方形
猜你喜欢
转载自www.cnblogs.com/JankinLiu/p/10323751.html
今日推荐
周排行