随笔分类 -  CSS

摘要:改编自 一、伪元素有哪些 首先,先简单说一下伪元素都有哪些。伪元素有六个,分别是 ::after、::before、::first-line、::first-letter、::selection、::backdrop 。 在各大网页中最常用的伪元素,是::after和::before。 这几个伪元素 阅读全文
posted @ 2022-05-02 09:29 mayingdts 阅读(4685) 评论(0) 推荐(0)
摘要:https://css-tricks.com/computed-values-more-than-meets-the-eye/#comment-1785337 The values defined for the style calculation process include the decla 阅读全文
posted @ 2022-03-19 16:31 mayingdts 阅读(73) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2022-03-19 16:20 mayingdts 阅读(14) 评论(0) 推荐(0)
摘要:1. length absolute length px relative length em 基于 its own 的font-size计算而来. 基于前点, 同样的 1 em, 在不同 element 上可能 calculated value 并不相同, 因为其 relative to 的 fo 阅读全文
posted @ 2022-03-19 16:04 mayingdts 阅读(38) 评论(0) 推荐(0)
摘要:basic selector 选择器 作用 缺点 使用情况 用法 标签选择器 可以选出所有相同的标签,比如p 不能差异化选择 较多 p { color:red;} 类选择器 可以选出1个或者多个标签 可以根据需求选择 非常多 .nav { color: red; } id选择器 一次只能选择器1个标 阅读全文
posted @ 2022-03-19 15:50 mayingdts 阅读(48) 评论(0) 推荐(0)
摘要:From Web Dev Simplified https://blog.webdevsimplified.com/ https://www.youtube.com/c/WebDevSimplified/featured God bless contributors~ 阅读全文
posted @ 2022-03-19 15:10 mayingdts 阅读(84) 评论(0) 推荐(0)