<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>hi013z左右方向渐变</title>
<style>
#grad1 {
height: 200px;
background: -webkit-linear-gradient(left, rgba(251, 251, 251, 0.09),rgba(251, 251, 251, 0.59),#ccc); /* Safari 5.1 - 6.0 */
background: -o-linear-gradient(right, rgba(251, 251, 251, 0.09),rgba(251, 251, 251, 0.59) ,#ccc); /* Opera 11.1 - 12.0 */
background: -moz-linear-gradient(right,rgba(251, 251, 251, 0.09),rgba(251, 251, 251, 0.59) ,#ccc); /* Firefox 3.6 - 15 */
background: linear-gradient(to right, rgba(251, 251, 251, 0.09)rgba(251, 251, 251, 0.59), ,#ccc); /* 标准的语法(必须放在最后) */
height: 6px;
}
#body{
background: #579f23;
}
</style>
</head>
<body id="body">
<div id="grad1"></div>
</body>
</html>
<html>
<head>
<meta charset="utf-8">
<title>hi013z左右方向渐变</title>
<style>
#grad1 {
height: 200px;
background: -webkit-linear-gradient(left, rgba(251, 251, 251, 0.09),rgba(251, 251, 251, 0.59),#ccc); /* Safari 5.1 - 6.0 */
background: -o-linear-gradient(right, rgba(251, 251, 251, 0.09),rgba(251, 251, 251, 0.59) ,#ccc); /* Opera 11.1 - 12.0 */
background: -moz-linear-gradient(right,rgba(251, 251, 251, 0.09),rgba(251, 251, 251, 0.59) ,#ccc); /* Firefox 3.6 - 15 */
background: linear-gradient(to right, rgba(251, 251, 251, 0.09)rgba(251, 251, 251, 0.59), ,#ccc); /* 标准的语法(必须放在最后) */
height: 6px;
}
#body{
background: #579f23;
}
</style>
</head>
<body id="body">
<div id="grad1"></div>
</body>
</html>