![](https://img-blog.csdnimg.cn/20201014180756923.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
css样式
wkc1203
这个作者很懒,什么都没留下…
展开
-
css样式学习整理不断更新
4-21 盒模型:由于元素边看和内边距会撑开元素,以前的解决方法是元素实际宽度减去边框和内边距的宽度, 现在可以用 -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; 支持IE8+ 可以应用媒体查询@media来进行适配,当屏幕大于多少的时...原创 2020-04-21 16:27:00 · 165 阅读 · 0 评论 -
自适应rem
设置计算html的font-size @media screen and (max-width:320px){ html{ font-size:20px; } } @media screen and (min-width:320px) and (max-width:360px){ html{ font-size:24px; ...原创 2020-04-21 11:00:21 · 87 阅读 · 0 评论 -
清除浮动
1,让盒子负责自己的布局 2,overflow:hidden(auto) 3,::after{clear:both}原创 2019-10-24 22:40:55 · 78 阅读 · 0 评论