本文阅读量 次
1. CSS¶
1.1 CSS 基本概念¶
- Replaced elements https://developer.mozilla.org/en-US/docs/Web/CSS/Replaced_element ⧉
1.1.1 关于布局¶
布局中的 block-level
元素和 inline-level
元素
1.1.1.1 基本布局 Normal Layout¶
1.1.1.2 布局分类¶
1.1.2 关于 Stacking context¶
1.2 CSS¶
1.2.1 圆形图标¶
border-radius: 100%;
1.3 踩过的坑¶
1.3.1 calc()
不生效¶
使用 calc(100vh-50px)
不生效, 需要在 减号两边预留空格,改为 calc(100vh - 50px)
则可以工作
这里是官方解释 ⧉
The + and - operators must be surrounded by whitespace.
The * and / operators do not require whitespace, but adding it for consistency is recommended.
1.4 参考¶
- CSS Display Module Level 3 ⧉
- Cascading Style Sheets Level 2 Revision 1 (CSS 2.1) Specification ⧉
- Cascading Style Sheets Level 2 Revision 2 (CSS 2.2) Specification ⧉
- CSS Cascading and Inheritance Level 4 ⧉
- CSS Cascading and Inheritance Level 5 ⧉
- CSS Cascading and Inheritance Level 6 ⧉
- Selectors Level 4 ⧉
- Selectors Level 3 ⧉
- CSS Flexible Box Layout Module Level 1 ⧉
- CSS Box Sizing Module Level 3 ⧉
- CSS Box Sizing Module Level 4 ⧉
- CSS Box Model Module Level 3 ⧉
- CSS Box Model Module Level 4 ⧉
- CSS Values and Units Module Level 3 ⧉
- CSS Values and Units Module Level 4 ⧉
- CSS Backgrounds and Borders Module Level 3 ⧉
- CSS Snapshot 2023 ⧉
- CSS Snapshot 2022 ⧉