网页
综合
更新时间 2026-11-13 14:53:17
CSS 参考手册 | 菜鸟教程
自动蜘蛛
www.runoob.com
正文约 6000 字
菜鸟教程 -- 学的不仅是技术,更是梦想! 首页 HTML JavaScript CSS Vue React Python3 Java C C++ C# AI Go SQL Linux VS Code Bootstrap Git 本地书签 首页 HTML CSS JS 本地书签 搜索 Vue3 教程 Vue2 教程 Bootstrap3 Bootstrap4 Bootstrap5 机器学习 PyTorch TensorFlow Sklearn NLP AI Agent Ollama Coding Plan CSS 参考手册 CSS 参考手册 CSS 选择器 CSS 听觉参考手册 CSS Web安全字体 CSS 动画 CSS 函数 CSS 单位 CSS 颜色 CSS 合法颜色值 CSS 颜色名称 CSS 颜色十六进制值 CSS 浏览器支持 Sass 教程 CSS 属性 align-content align-items align-self all animation animation-delay animation-direction animation-duration animation-fill-mode animation-iteration-count animation-name animation-play-state animation-timing-function appearance backface-visibility background background-attachment background-blend-mode background-clip background-color background-image background-origin background-position background-repeat background-size border border-bottom border-bottom-color border-bottom-left-radius border-bottom-right-radius border-bottom-style border-bottom-width border-collapse border-color border-image border-image-outset border-image-repeat border-image-slice border-image-source border-image-width border-left border-left-color border-left-style border-left-width border-radius border-right border-right-color border-right-style border-right-width border-spacing border-style border-top border-top-color border-top-left-radius border-top-right-radius border-top-style border-top-width border-width bottom box-align box-direction box-flex box-flex-group box-lines box-ordinal-group box-orient box-pack box-shadow box-sizing caption-side clear clip color column-count column-fill column-gap column-rule column-rule-color column-rule-style column-rule-width column-span column-width columns content counter-increment counter-reset cursor direction display empty-cells filter flex flex-basis flex-direction flex-flow flex-grow flex-shrink flex-wrap float font @font-face font-family font-size font-size-adjust font-stretch font-style font-variant font-weight @import grid-rows hanging-punctuation height icon justify-content @keyframes left letter-spacing line-height list-style list-style-image list-style-position list-style-type margin margin-bottom margin-left margin-right margin-top max-height max-width @media min-height min-width mix-blend-mode object-fit object-position nav-down nav-index nav-left nav-right nav-up opacity order outline outline-color outline-offset outline-style outline-width overflow overflow-x overflow-y padding padding-bottom padding-left padding-right padding-top page-break-after page-break-before page-break-inside perspective perspective-origin position punctuation-trim quotes resize right rotation tab-size table-layout target target-name target-new target-position text-align text-align-last text-decoration text-decoration-color text-decoration-line text-decoration-style text-indent text-justify text-outline text-overflow text-shadow text-transform text-wrap top transform transform-origin transform-style transition transition-delay transition-duration transition-property transition-timing-function unicode-bidi vertical-align visibility white-space width word-break word-spacing word-wrap z-index writing-mode gird gap row-gap grid-area grid-auto-columns grid-auto-rows grid-auto-flow grid-column grid-column-start grid-column-end grid-column-gap grid-gap grid-row-gap grid-row-end grid-row-start grid-template grid-template-areas grid-template-columns grid-template-rows grid-row @charset clip-path pointer-events backdrop-filte CSS 选择器 CSS 参考手册 菜鸟教程的 CSS 参考手册在所有主流浏览器中测试通过. CSS 属性 CSS 属性组: 动画 背景 边框和轮廓 框 颜色 内容页的媒体属性 尺寸 盒子模型(新) 盒子模型(旧) 字体 内容生成 网格 超链接 线框 列表 外边距 字幕 多列 内边距 页面媒体 定位 分页 Ruby 语音 表格 文本 2D/3D 转换 过渡 用户界面 "CSS" 列指示属性是在哪个 CSS 版本中定义的 (CSS1, CSS2, 或者 CSS3). 动画属性 属性 描述 CSS @keyframes 定义一个动画,@keyframes定义的动画名称用来被animation-name所使用。 3 animation 复合属性。检索或设置对象所应用的动画特效。 3 animation-name 检索或设置对象所应用的动画名称 ,必须与规则@keyframes配合使用,因为动画名称由@keyframes定义 3 animation-duration 检索或设置对象动画的持续时间 3 animation-timing-function 检索或设置对象动画的过渡类型 3 animation-delay 检索或设置对象动画的延迟时间 3 animation-iteration-count 检索或设置对象动画的循环次数 3 animation-direction 检索或设置对象动画在循环中是否反向运动 3 animation-play-state 检索或设置对象动画的状态 3 背景属性 属性 描述 CSS background 复合属性。设置对象的背景特性。 1 background-attachment 设置或检索背景图像是随对象内容滚动还是固定的。必须先指定background-image属性。 1 background-color 设置或检索对象的背景颜色。 1 background-image 设置或检索对象的背景图像。 1 background-position 设置或检索对象的背景图像位置。必须先指定background-image属性。 1 background-repeat 设置或检索对象的背景图像如何铺排填充。必须先指定background-image属性。 1 background-clip 指定对象的背景图像向外裁剪的区域。 3 background-origin S设置或检索对象的背景图像计算background-position时的参考原点(位置)。 3 background-size 检索或设置对象的背景图像的尺寸大小。 3 边框(Border) 和 轮廓(Outline) 属性 属性 描述 CSS border 复合属性。设置对象边框的特性。 1 border-bottom 复合属性。设置对象底部边框的特性。 1 border-bottom-color 设置或检索对象的底部边框颜色。 1 border-bottom-style 设置或检索对象的底部边框样式。 1 border-bottom-width 设置或检索对象的底部边框宽度。 1 border-color 置或检索对象的边框颜色。 1 border-left 复合属性。设置对象左边边框的特性。 1 border-left-color 设置或检索对象的左边边框颜色。 1 border-left-style 设置或检索对象的左边边框样式。 1 border-left-width 设置或检索对象的左边边框宽度。 1 border-right 复合属性。设置对象右边边框的特性。 1 border-right-color 设置或检索对象的右边边框颜色。 1 border-right-style 设置或检索对象的右边边框样式。 1 border-right-width 设置或检索对象的右边边框宽度。 1 border-style 设置或检索对象的边框样式。 1 border-top 复合属性。设置对象顶部边框的特性。 1 border-top-color 设置或检索对象的顶部边框颜色 1 border-top-style 设置或检索对象的顶部边框样式。 1 border-top-width 设置或检索对象的顶部边框宽度。 1 border-width 设置或检索对象的边框宽度。 1 outline 复合属性。设置或检索对象外的线条轮廓。 2 outline-color 设置或检索对象外的线条轮廓的颜色。 2 outline-style 设置或检索对象外的线条轮廓的样式。 2 outline-width 设置或检索对象外的线条轮廓的宽度。 2 border-bottom-left-radius 设置或检索对象的左下角圆角边框。提供2个参数,2个参数以空格分隔,每个参数允许设置1个参数值,第1个参数表示水平半径,第2个参数表示垂直半径,如第2个参数省略,则默认等于第1个参数 3 border-bottom-right-radius 设置或检索对象的右下角圆角边框。 3 border-image 设置或检索对象的边框样式使用图像来填充。 3 border-image-outset 规定边框图像超过边框的量。 3 border-image-repeat 规定图像边框是否应该被重复(repeated)、拉伸(stretched)或铺满(rounded)。 3 border-image-slice 规定图像边框的向内偏移。 3 border-image-source 规定要使用的图像,代替 border-style 属性中设置的边框样式。 3 border-image-width 规定图像边框的宽度。 3 border-radius 设置或检索对象使用圆角边框。 3 border-top-left-radius 定义左上角边框的形状。 3 border-top-right-radius 定义右上角边框的形状。 3 box-decoration-break 规定行内元素被折行 3 box-shadow 向方框添加一个或多个阴影。
本页为82搜索生成的网页快照,内容来自站内索引;演示数据的原文链接仅作示例。