We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
background-color: 颜色 | transparent (1)默认值: transparent (2)颜色 === 颜色名/rgb/十六进制 (3)背景区包括padding, border, 但不包括margin 设置背景颜色为红色: background-color: red; background-color: #ff0000; background-color: rgb(255,0,0);
background-image: url | none; (1)默认值: none (2)url可以是绝对地址, 也可以是相对地址 (3)元素的背景占据了元素的全部尺寸, 包括padding, border, 但不包括margin (4)默认地, 背景图像位于元素的左上角, 并在水平和垂直方向上重复.
background-repeat: no-repeat | repeat | repeat-x | repeat-y (1)默认值: repeat (2)no-repeat: 背景图像不重复 repeat: 背景图像水平方向和垂直方向上重复 repeat-x: 背景图像水平方向上重复 repeat-y: 背景图像垂直方向上重复 (3)只有在设置了background-image时, 才会生效
background-attachment: scroll | fixed (1)默认值: scroll (2)scroll: 背景图片随滚动条滚动而滚动. fixed: 当页面其他部分滚动时, 背景图像不会移动
background-position: 百分比 | 值 top | right | bottom | left | center (1)默认值: 左上角 (2)只写一个参数的话, 第二个默认为居中(水平居中/垂直居中) (3)top: 顶部显示, 垂直方向0%, 水平居中 (4)bottom: 底部显示, 垂直方向100%, 水平居中 (5)left: 左侧显示, 水平方向0%, 垂直居中 (6)right: 右侧显示, 水平方向100%, 垂直居中
background: [background-color] [background-image] [background-repeat] [background-attachment] [background-position] (1)各值之间用空格隔开, 不分先后顺序
list-style-type: 关键字 | none; (1)默认值: a.无序列表默认值: disc b.有序列表默认值: decimal (2)无序列表: none: 无标记 disc: 实心圆 circle: 空心圆 square: 实心方块 (3)有序列表: none: 无标记 decimal: 从1开始整数 lower-roman: 小写罗马字母 upper-roman: 大写罗马字母 lower-alpha: 小写英文字母 upper-alpha: 大写英文字母
list-style-image: url | none; (1)默认值: none; (2)url: 图像的路径
list-style-position: inside | outside (1)默认值: outside (2)outside: 文本不环绕标志 inside: 文本环绕标志
list-style: [list-style-type] [list-style-image] [list-style-position] (1)各值之间用逗号隔开, 不分先后顺序 (2)list-style-image会覆盖list-style-type
The text was updated successfully, but these errors were encountered:
253867843
No branches or pull requests
CSS背景和列表
CSS背景样式
CSS列表样式
2-1.background-color
2-4.background-image
2-7.background-repeat
2-8.background-attachment
2-12.background-position
2-16.background简写属性
3-1.list-style-type
3-4.list-style-image
3-6.list-style-position
3-9.list-style简写属性
4-1.课程总结
The text was updated successfully, but these errors were encountered: