<!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>
Educational Codeforces Round 154 (Rated for Div. 2)
A. Prime Deletion
思路: 因为1到9每个数字都有,所以随便判断也质素即可
代码
#include<bits/stdc.h>
using namespace std;
#define int long long
#define rep(i,a,n) for(int ia;i<…
uniapp 小程序获取当前位置信息报错 报错信息: getLocation:fail the api need to be declared in the requiredPrivateInfos field in app.json/ext.json 需要在manifest.json配置文件中进行配置: