首页 > 其他 > 详细

渐变linear-gradient

时间:2019-08-17 14:29:02      阅读:82      评论:0      收藏:0      [点我收藏+]

示例代码:

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>grandient</title>
</head>
<style type="text/css">
.linear-grandient{
width: 600px;
margin: 50px auto;
text-align: center;
background-color: rgba(12, 19, 17, 0.2);
}
.linear-grandient p{
width: 100px;
height: 100px;
line-height: 100px;
float: left;
margin-left: 150px;
background-color: #f9f9f9;
border: 1px #999999 solid;
font-size: 20px;
}
.linear-grandient p:first-child{
background: -webkit-linear-gradient(red,white,green);
}
.linear-grandient p:last-child{
background: -webkit-linear-gradient(20deg,red,white,green);
}
</style>
<body>
<div class="linear-grandient">
<p>普通渐变</p>
<p>角度渐变</p>
</div>
</body>
</html>

效果图:

技术分享图片

 

渐变linear-gradient

原文:https://www.cnblogs.com/cxxBoo/p/11368004.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!