CSS3: repeating-linear-gradient()
Khả năng lặp trong linear gradient
Hàm repeating-linear-gradient() được dùng để lặp linear gradient.
Cú pháp:
background: repeating-linear-gradient(màu1, màu2, ..., màun);
Ví dụ:
<!DOCTYPE html>
<html>
<head>
<style>
#lap{
height:200px;
background: repeating-linear-gradient(red 150px, yellow, green);
}
</style>
</head>
<body>
<h1>Repeating Linear Gradient</h1>
<div id="lap"></div>
<p><strong>Note:</strong> Internet Explorer 9 and earlier versions do not support gradients.</p>
</body>
</html>