# css-study **Repository Path**: wzbnb/css-study ## Basic Information - **Project Name**: css-study - **Description**: css-study - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 1 - **Created**: 2020-10-28 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ### css 内容学习 ### 选择器 语法:selector {declaration1; declaration2; ... declarationN } 分组和继承 派生选择器 id 选择器 # 类 选择器 . 属性选择器 [attribute] 用于选取带有指定属性的元素。 [attribute=value] 用于选取带有指定属性和值的元素。 [attribute~=value] 用于选取属性值中包含指定词汇的元素。 多值 [attribute|=value] 用于选取带有以指定值开头的属性值的元素,该值必须是整个单词。 [attribute^=value] 匹配属性值以指定值开头的每个元素。 [attribute$=value] 匹配属性值以指定值结尾的每个元素。 [attribute*=value] 匹配属性值中包含指定值的每个元素。 ### 引入 外部 内部 引用 生效原则 就近原则 ### style: 背景 文本 字体 链接 列表 表格 轮廓 ### 框模型 element | padding | border | margin 正方形生效: 上开始 顺时针 外边距合并