css3 backgroud的缩写形式
background: #d3d4d5 url(bg.png) 100% 0 / 50% 80% no-repeat;
注意:/ 不能丢,/前面表示background-position; /后面表示background-size
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
.cd{
width:100px;
height: 100px;
background: #d3d4d5 url(wxg.png) 100% 0 / 50% 80% no-repeat;
}
</style>
</head>
<body>
<div class="cd"></div>
<h3>background: #d3d4d5 url(wxg.png) 100% 0 / 50% 80% no-repeat;</h3>
<h5>
背景色 背景图 x轴位置 y轴位置 x方向缩放 y方向缩放 repeat
</h5>
<h2>注意:/ 不能丢,/前面表示background-position; /后面表示background-size</h2>
</body>
</html>
![在这里插入图片描述](https://img-blog.csdnimg.cn/20200502111204923.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3dlaXhpbl80MjcwODIwOA==,size_16,color_FFFFFF,t_70#pic_center)