Skip to content

Commit 13f0d0b

Browse files
author
shao80s
committed
1
1 parent b202211 commit 13f0d0b

File tree

4 files changed

+26
-0
lines changed

4 files changed

+26
-0
lines changed

background_attachment.md

+8
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,14 @@
44

55
设置对象的背景图像是随对象内容滚动还是固定的
66

7+
## 语法
8+
9+
```
10+
background-attachment:<attachment> [ , <attachment> ]*
11+
<attachment> = fixed | local | scroll
12+
```
13+
14+
715
例:
816

917
```javascript

background_clip.md

+6
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@
44

55
设置对象的背景向外裁剪的区域
66

7+
## 语法
8+
9+
```
10+
background-clip: border-box|padding-box|content-box;
11+
```
12+
713
例:
814

915
```javascript

background_multiple.md

+6
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@
44

55
复合属性,设置对象的多重背景图像(背景色background-color不能设置多重)
66

7+
## 语法
8+
9+
```
10+
background : [background-image] | [background-origin] | [background-clip] | [background-repeat] | [background-size] | [background-position]
11+
```
12+
713
例:
814

915
```javascript

background_size.md

+6
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@
44

55
设置对象的背景图像的尺寸大小
66

7+
## 语法
8+
9+
```
10+
background-size: length|percentage|cover|contain;
11+
```
12+
713
例:
814

915
```javascript

0 commit comments

Comments
 (0)