您现在的位置: 365建站网 > 建站教程 > css教程 >

CSS 教程

通过使用 CSS 来提升工作效率!

在我们的 CSS 教程中,您会学到如何使用 CSS 同时控制多重网页的样式和布局。

开始学习 CSS !

CSS 实例

学习 70 个实例。您可以对 CSS 代码进行编辑,然后单击测试按钮来查看结果。

亲自试一下吧 !

CSS 测验

在 W3School 测试您的 CSS 技能!

开始 CSS 测验!

CSS 参考手册

在 W3School,我们提供完整的 CSS 参考手册(已升级为 CSS3)。

CSS 参考手册


css教程·教程目录

本教程全部小节

1CSS 简介 2CSS 基础语法 3CSS 高级语法 4CSS 派生选择器 5CSS id 选择器 6CSS 类选择器 7CSS 属性选择器 8如何创建 CSS 9CSS 背景 10CSS 文本 11CSS 字体 12CSS 链接 13CSS 列表 14CSS 表格 15CSS 轮廓 16CSS 框模型概述 17CSS 内边距 18CSS 边框 19CSS 外边距 20CSS 外边距合并 21CSS 定位 22CSS 相对定位 23CSS 绝对定位 24CSS 浮动 25CSS 元素选择器 26CSS 分组 27CSS 类选择器详解 28CSS ID 选择器详解 29CSS 属性选择器详解 30CSS 后代选择器 31CSS 子元素选择器 32CSS 相邻兄弟选择器 33CSS 伪类 34CSS 伪元素 35CSS 水平对齐 36CSS 尺寸 37CSS 分类 38CSS 导航条 39CSS 图片库 40CSS 图像透明度 41CSS2 媒介类型 42CSS 注意事项 43CSS2 总结 44CSS 测验 45CSS 实例 46CSS 参考手册 47CSS 选择器参考手册 48CSS 听觉参考手册 49CSS 网络安全字体组合 50CSS .class 选择器 51CSS #id 选择器 52CSS * 选择器 53CSS element 选择器 54CSS element,element 选择器 55CSS element element 选择器 56CSS element>element 选择器 57CSS element+element 选择器 58CSS [attribute] 选择器 59CSS [attribute=value] 选择器 60CSS [attribute~=value] 选择器 61CSS [attribute|=value] 选择器 62CSS :link 选择器 63CSS :visited 选择器 64CSS :active 选择器 65CSS :hover 选择器 66CSS :focus 选择器 67CSS :first-letter 选择器 68CSS :first-line 选择器 69CSS :first-child 选择器 70CSS :before 选择器 71CSS :after 选择器 72CSS :lang 选择器 73CSS3 element1~element2 选择器 74CSS3 [attribute^=value] 选择器 75CSS3 [attribute$=value] 选择器 76CSS3 [attribute*=value] 选择器 77CSS3 :first-of-type 选择器 78CSS3 :last-of-type 选择器 79CSS3 :only-of-type 选择器 80CSS3 :only-child 选择器 81CSS3 :nth-child() 选择器 82CSS3 :nth-last-child() 选择器 83CSS3 :nth-of-type() 选择器 84CSS3 :nth-last-of-type() 选择器 85CSS3 :last-child 选择器 86CSS3 :root 选择器 87CSS3 :empty 选择器 88CSS3 :target 选择器 89CSS3 :enabled 选择器 90CSS3 :disabled 选择器 91CSS3 :checked 选择器 92CSS3 :not 选择器 93CSS3 ::selection 选择器 94CSS3 @keyframes 规则 95CSS3 animation 属性 96CSS3 animation-name 属性 97CSS3 animation-duration 属性 98CSS3 animation-timing-function 属性 99CSS3 animation-delay 属性 100CSS3 animation-iteration-count 属性 101CSS3 animation-direction 属性 102CSS3 animation-play-state 属性 103CSS3 animation-fill-mode 属性 104CSS background 属性 105CSS background-attachment 属性 106CSS background-color 属性 107CSS background-image 属性 108CSS background-position 属性 109CSS background-repeat 属性 110CSS3 background-clip 属性 111CSS3 background-origin 属性 112CSS3 background-size 属性 113CSS border 属性 114CSS border-bottom 属性 115CSS border-bottom-color 属性 116CSS border-bottom-style 属性 117CSS border-bottom-width 属性 118CSS border-color 属性 119CSS border-left 属性 120CSS border-left-color 属性 121CSS border-left-style 属性 122CSS border-left-width 属性 123CSS border-right 属性 124CSS border-right-color 属性 125CSS border-right-style 属性 126CSS border-right-width 属性 127CSS border-style 属性 128CSS border-top 属性 129CSS border-top-color 属性 130CSS border-top-style 属性 131CSS border-top-width 属性 132CSS border-width 属性 133CSS outline 属性 134CSS outline-color 属性 135CSS outline-style 属性 136CSS outline-width 属性 137CSS3 border-bottom-left-radius 属性 138CSS3 border-bottom-right-radius 属性 139CSS3 border-image 属性 140CSS3 border-image-outset 属性 141CSS3 border-image-repeat 属性 142CSS3 border-image-slice 属性 143CSS3 border-image-source 属性 144CSS3 border-image-width 属性 145CSS3 border-radius 属性 146CSS3 border-top-left-radius 属性 147CSS3 border-top-right-radius 属性 148CSS3 box-shadow 属性 149CSS3 overflow-x 属性 150CSS3 overflow-y 属性 151CSS3 overflow-style 属性 152CSS3 rotation 属性 153CSS3 rotation-point 属性 154CSS3 opacity 属性 155CSS height 属性 156CSS max-height 属性 157CSS max-width 属性 158CSS min-height 属性 159CSS min-width 属性 160CSS width 属性 161CSS3 box-align 属性 162CSS3 box-direction 属性 163CSS3 box-flex 属性 164CSS3 box-flex-group 属性 165CSS3 box-lines 属性 166CSS3 box-ordinal-group 属性 167CSS3 box-orient 属性 168CSS3 box-pack 属性 169CSS font 属性 170CSS font-family 属性 171CSS font-size 属性 172CSS font-size-adjust 属性 173CSS font-stretch 属性 174CSS font-style 属性 175CSS font-variant 属性 176CSS font-weight 属性 177CSS content 属性 178CSS counter-increment 属性 179CSS counter-reset 属性 180CSS quotes 属性 181CSS3 grid-columns 属性 182CSS3 grid-rows 属性 183CSS3 target 属性 184CSS3 target-name 属性 185CSS3 target-new 属性 186CSS3 target-position 属性 187CSS list-style 属性 188CSS list-style-image 属性 189CSS list-style-position 属性 190CSS list-style-type 属性 191CSS margin 属性 192CSS margin-bottom 属性 193CSS margin-left 属性 194CSS margin-right 属性 195CSS margin-top 属性 196CSS3 column-count 属性 197CSS3 column-fill 属性 198CSS3 column-gap 属性 199CSS3 column-rule 属性 200CSS3 column-rule-color 属性 201CSS3 column-rule-style 属性 202CSS3 column-rule-width 属性 203CSS3 column-span 属性 204CSS3 column-width 属性 205CSS3 columns 属性 206CSS padding 属性 207CSS padding-bottom 属性 208CSS padding-left 属性 209CSS padding-right 属性 210CSS padding-top 属性 211CSS bottom 属性 212CSS clear 属性 213CSS clip 属性 214CSS cursor 属性 215CSS display 属性 216CSS float 属性 217CSS left 属性 218CSS overflow 属性 219CSS position 属性 220CSS right 属性 221CSS top 属性 222CSS vertical-align 属性 223CSS visibility 属性 224CSS z-index 属性 225CSS page-break-after 属性 226CSS page-break-before 属性 227CSS page-break-inside 属性 228CSS border-collapse 属性 229CSS border-spacing 属性 230CSS caption-side 属性 231CSS empty-cells 属性 232CSS table-layout 属性 233CSS color 属性 234CSS direction 属性 235CSS letter-spacing 属性 236CSS line-height 属性 237CSS text-align 属性 238CSS text-decoration 属性 239CSS text-indent 属性 240CSS text-transform 属性 241CSS unicode-bidi 属性 242CSS white-space 属性 243CSS word-spacing 属性 244CSS3 hanging-punctuation 属性 245CSS3 punctuation-trim 属性 246CSS3 text-emphasis 属性 247CSS3 text-justify 属性 248CSS3 text-outline 属性 249CSS3 text-overflow 属性 250CSS3 text-shadow 属性 251CSS3 text-wrap 属性 252CSS3 word-break 属性 253CSS3 word-wrap 属性 254CSS3 transform 属性 255CSS3 transform-origin 属性 256CSS3 transform-style 属性 257CSS3 perspective 属性 258CSS3 perspective-origin 属性 259CSS3 backface-visibility 属性 260CSS3 transition 属性 261CSS3 transition-property 属性 262CSS3 transition-duration 属性 263CSS3 transition-timing-function 属性 264CSS3 transition-delay 属性 265CSS3 appearance 属性 266CSS3 box-sizing 属性 267CSS3 icon 属性 268CSS3 nav-down 属性 269CSS3 nav-index 属性 270CSS3 nav-left 属性 271CSS3 nav-right 属性 272CSS3 nav-up 属性 273CSS3 outline-offset 属性 274CSS3 resize 属性 275CSS :active 伪类 276CSS :focus 伪类 277CSS :hover 伪类 278CSS :link 伪类 279CSS :visited 伪类 280CSS :first-child 伪类 281CSS :lang 伪类 282CSS :first-letter 伪元素 283CSS :first-line 伪元素 284CSS :before 伪元素 285CSS :after 伪元素 286CSS z-index 属性 287CSS3 nav-index 属性 288CSS 字体系列 289CSS 合法颜色值 290CSS 合法颜色值 291CSS 参考手册