<!DOCTYPEhtml><htmllang="en"><head><metacharset="UTF-8"><title>background position 4</title><style>div{height: 160px;}.box{background-image:url(image/1024.gif);background-position: center top;}</style></head><body><divclass="box"></div></body></html>
4.3.3 图片拼接
将下面两张图片拼接在一起.
<!DOCTYPEhtml><htmllang="en"><head><metacharset="UTF-8"><title>background position 5</title><style>div{width: 1400px;height: 900px;}.box1{background-image:url(image/剑圣1.png);background-repeat: no-repeat;background-position: 61% top;}.box2{background-image:url(image/剑圣2.png);}</style></head><body><divclass="box2"><divclass="box1"></div></div></body></html>
4.3.4 图片重叠
将下面两张图片重叠在一起.
<!DOCTYPEhtml><htmllang="en"><head><metacharset="UTF-8"><title>background position 6</title><style>div{width: 1136px;height: 632px;}.box1{background-image:url(image/鱼1.png);background-repeat: no-repeat;}.box2{background-image:url(image/鱼2.png);background-repeat: no-repeat;background-position: center bottom;}</style></head><body><divclass="box1"><divclass="box2"></div></div></body></html>
<!DOCTYPEhtml><htmllang="en"><head><metacharset="UTF-8"><title>background attachment</title><style>.box1{background-image:url(image/img2.png);background-repeat: no-repeat;background-attachment: fixed;}</style></head><body><divclass="box1">
x <br> x <br> x <br> x <br>
x <br> x <br> x <br> x <br>
x <br> x <br> x <br> x <br>
x <br> x <br> x <br> x <br>
x <br> x <br> x <br> x <br>
x <br> x <br> x <br> x <br>
x <br> x <br> x <br> x <br>
x <br> x <br> x <br> x <br>
x <br> x <br> x <br> x <br>
x <br> x <br> x <br> x <br>
x <br> x <br> x <br> x <br>
x <br> x <br> x <br> x <br>
x <br> x <br> x <br> x <br>
x <br> x <br> x <br> x <br>
x <br> x <br> x <br> x <br></div></body></html>
集成 Google Pay 可以为你的应用提供方便的支付体验。下面是一个简要的 Google Pay 集成流程概述,希望对大家有所帮助。北京木奇移动技术有限公司,专业的软件外包开发公司,欢迎交流合作。 1.创建 Google 开发者账号: 如果你还没有…
一、C语言参数传递是整体带入
#include <stdio.h>
#define DF(a,b) (a2*b)
int main()
{
int s5;
int k DF((s1),(s-3));
printf("%d",k);
}输出结果 原因:
#define DF(a,b) (a2*b)
int k DF((s1),(s-3));
//等效
int k DF((s1)2 * (s-3));
…