Thuộc tính background-repeat vuông, tròn trong CSS

Thuộc tính background-repeat vuông, tròn trong CSS

Thuộc tính background-repeat vuông, tròn trong CSS

Tự code rồi chạy thử... Chạy Thử
<!DOCTYPE html>
<html>
<head>
<title>Thuộc tính background-repeat vuông, tròn trong CSS</title>
<style>
div{margin-bottom:10px}
#example2 {
  border: 2px solid black;
  padding: 25px;
  background: url("https://webmoi.vn/thumuc/bg-vuong.jpg");
}
#example3 {
  border: 1px solid black;
  padding: 25px;
  background: url("https://webmoi.vn/thumuc/bg-vuong.jpg");
}
</style>
</head>
<body>

<h1>Thuộc tính background-repeat vuông, tròn trong CSS</h1>

<div id="example2" style="background-repeat: space;">
  <h3>background-repeat: space (vuông)</h3>
</div>

<div id="example3" style=" background-repeat: round;">
  <h3>background-repeat: round (tròn)</h3>
</div>

</body>
</html>
Thuộc tính background-repeat vuông, tròn trong CSS nằm trong bài viết Thuộc tính background-repeat trong CSS