CSS background-repeat 속성은 배경 이미지가 반복되는 방식을 정의하는 데 사용됩니다.
구문
CSS background-repeat 속성의 구문은 다음과 같습니다 -
Selector {
background-repeat: /*value*/
} 예시
다음 예는 CSS background-repeat 속성을 보여줍니다 -
<!DOCTYPE html>
<html>
<head>
<style>
body {
background-image: url("https://www.tutorialspoint.com/images/microsoftproject.png");
background-repeat: repeat;
}
</style>
</head>
<body>
</body>
</html> 출력
이것은 다음과 같은 출력을 제공합니다 -

예시
<!DOCTYPE html>
<html>
<head>
<style>
ul {
background-image: url("https://www.tutorialspoint.com/images/questions-answers.png");
background-repeat: space repeat;
}
</style>
</head>
<body>
<h2>Tutorials</h2>
<ul>
<li>Java</li>
<li>C#</li>
<li>Etherum</li>
<li>DBMS</li>
<li>OS</li>
</ul>
</body>
</html> 출력
이것은 다음과 같은 출력을 제공합니다 -
