
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 · 213 阅读 · 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 · 119 阅读 · 0 评论 -
清除浮动
1,让盒子负责自己的布局2,overflow:hidden(auto)3,::after{clear:both}原创 2019-10-24 22:40:55 · 116 阅读 · 0 评论