Thuộc tính background-image linear-gradient 3 màu trong CSS

Thuộc tính background-image linear-gradient 3 màu trong CSS

Thuộc tính background-image linear-gradient 3 màu trong CSS

Tự code rồi chạy thử... Chạy Thử
<!DOCTYPE html>
<html>
<head>
<title>Thuộc tính background-image linear-gradient 3 màu trong CSS</title>
<style>
#divbg{
  height: 200px;
}
</style>
</head>
<body>
<h1>Thuộc tính background-image linear-gradient 3 màu trong CSS</h1>
<p>Background tuyến tính từ trên xuống, chuyển dần từ màu đỏ sang màu vàng, sau đó chuyển dần sang màu xanh:</p>
<div id="divbg" style="background-image: linear-gradient(red, yellow, green);"></div>
</body>
</html>
Thuộc tính background-image linear-gradient 3 màu trong CSS nằm trong bài viết Thuộc tính background-image trong CSS