<html>
<head>
<meta charset="UTF-8">
<title></title>
<style type="text/css">
.demo{
width:200px
height:10px
background:-webkit-linear-gradient(left, rgb(80,80,255,0.2) , #fff) /* Safari 5.1 - 6.0 */
background: -o-linear-gradient(left, rgb(80,80,255,0.2) , #fff)/* Opera 11.1 - 12.0 */
background: -moz-linear-gradient(left, rgb(80,80,255,0.2) , #fff)/* Firefox 3.6 - 15 */
background: linear-gradient(to left, rgb(80,80,255,0.2) , #fff)/* 标准的语法 */
}
</style>
</head>
<body>
<div class="demo" ></div>
</body>
</html>
一、CSS3 中的边框颜色 这里是一个10px宽的标准边框和边框颜色: #borderColor { border: 10px solid #dedede-moz-border-bottom-colors: #300 #600 #700 #800 #900 #A00-moz-border-top-colors: #300 #600 #700 #800 #900 #A00-moz-border-left-colors: #300 #600 #700 #800 #900 #A00-moz-border-right-colors: #300 #600 #700 #800 #900 #A00padding: 15px 25pxheight: inheritwidth: 590px}二、有圆角的边框颜色 #borderColorCorner { border: 10px solid #dedede-moz-border-radius: 15px-moz-border-bottom-colors: #303 #404 #606 #808 #909 #A0A-moz-border-top-colors: #303 #404 #606 #808 #909 #A0A-moz-border-left-colors: #303 #404 #606 #808 #909 #A0A-moz-border-right-colors: #303 #404 #606 #808 #909 #A0Apadding: 15px 25pxheight: inheritwidth: 590px}