<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>CSS3渐变色</title>
<style>
.color{
margin-left: 500px;
margin-top: 150px;
width: 400px;
height: 300px;
/*border-radius: 50%;*/
background: -webkit-linear-gradient(left,#ec3096,#f68668);
background: -o-linear-gradient(left,#ec3096,#f68668);
background: -moz-linear-gradient(left,#ec3096,#f68668);
background: -mos-linear-gradient(left,#ec3096,#f68668);
background: linear-gradient(left,#ec3096,#f68668);
}
</style>
</head>
<body>
<div class="color">
</div>
</body>
</html>
//效果图如下