![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
c s s
TellMeha
这个作者很懒,什么都没留下…
展开
-
css占满整个屏幕的方法
1.给html和body添加百分比宽高 css样式 *{ padding: 0; margin: 0; } html,body{ height: 100%; width: 100%; } .father{ height: 100%; width: 100%; backgrou...原创 2020-02-24 15:06:26 · 3082 阅读 · 0 评论 -
盒子水平和垂直居中的方法
1.利用定位position和transform *{ padding: 0; margin: 0; } html,body{ width: 100%; height: 100%; } .father{ height: 100%; width: 100%; backgroun...原创 2020-02-24 15:48:19 · 169 阅读 · 0 评论