mirror of
https://github.com/Daotin/Web.git
synced 2024-10-30 04:24:45 +08:00
18 lines
246 B
Markdown
18 lines
246 B
Markdown
|
多背景图叠加
|
||
|
|
||
|
|
||
|
|
||
|
代码如下:
|
||
|
|
||
|
```css
|
||
|
background: url("1.png") 0 0 no-repeat,
|
||
|
url("2.png") 0 0 no-repeat;
|
||
|
background-color: red;
|
||
|
```
|
||
|
|
||
|
|
||
|
|
||
|
注意:
|
||
|
|
||
|
1. 书写的顺序先写小图,在写大图。
|
||
|
2. 最后另写背景颜色。
|