<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>背景平铺</title>
<style>
div{
width: 500px;
height: 200px;
background-image: url(image/批注\ 2020-08-14\ 100704.png);
/* 默认是平铺的 */
background-repeat: repeat;
}
.zzf {
width: 200px;
height: 200px;
background-image: url(image/批注\ 2020-08-14\ 100704.png);
background-repeat: no-repeat;
}
.zzf1{
width: 500px;
height: 200px;
background-image: url(image/批注\ 2020-08-14\ 100704.png);
background-repeat:repeat-x;
}
.zzf2{
width: 200px;
height: 200px;
background-image: url(image/批注\ 2020-08-14\ 100704.png);
background-repeat:repeat-y;
}
</style>
</head>
<body>
<div></div>
<div class="zzf"></div>
<div class="zzf1"></div>
<div class="zzf2"></div>
</body>
</html>