<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<title> New Document </title>
<meta name="Keywords" content="">
<meta name="Description" content="">
<style type="text/css">
*{margin:0;padding:0;}
body{margin:0 auto;}
.box1{
margin:20px auto;
width:400px;height:400px;
border-radius:200px;
/*border:1px #000 solid;*/
background:-webkit-radial-gradient(
50% 50%,
red 0%,
yellow 20%,
green 50%,
blue 100%) ;
}
.box2{
margin:20px auto;
width:400px;height:400px;
border-radius:0;
border:1px #000 solid;
background:-webkit-radial-gradient(
left top,red,green) ;
}
.box3{
margin:20px auto;
width:400px;height:400px;
border-radius:200px;
border:1px #000 solid;
background:-webkit-radial-gradient(
left top,
#f00 0%,
#f60 30%,
#fff 100%) ;
}
.box5{
margin:20px auto;
width:400px;height:400px;
background: -o-radial-gradient( red, purple, green);
background: -webkit-radial-gradient( red, purple, green);
background: -ms-radial-gradient( red, purple, green);
background: -moz-radial-gradient( red, purple, green);
background: radial-gradient( red, purple, green);
}
.box7{
margin: 20px auto;
width: 400px;
height: 400px;
background: -o-radial-gradient(bottom right,red 0%,yellow 50%,#0f0 100%);
background: -sm-radial-gradient(bottom right,red 0%,yellow 50%,#0f0 100%);
background: -moz-radial-gradient(bottom right,red 0%,yellow 50%,#0f0 100%);
background: -webkit-radial-gradient(bottom right,red 0%,yellow 50%,#0f0 100%);
-webkit-background-clip:text;
-sm-background-clip:text;
-moz-background-clip:text;
-o-background-clip:text;
border-radius:400px/400px;
overflow: hidden;
color: transparent;
}
</style>
<link href="" style="text/css" rel="stylesheet"/>
</head>
<body>
<div class="box1"></div>
<div class="box2"></div>
<div class="box3"></div>
<div class="box5"></div>
<div class="box6"></div>
<div class="box7">今天回家啦啦啦拉拉阿拉啦啦啦啦啦啦啦今天回家啦啦啦拉拉阿拉啦啦啦啦啦啦啦今天回家啦啦啦拉拉阿拉啦啦啦啦啦啦啦今天回家啦啦啦拉拉阿拉啦啦啦啦啦啦啦今天回家啦啦啦拉拉阿拉啦啦啦啦啦啦啦今天回家啦啦啦拉拉阿拉啦啦啦啦啦啦啦今天回家啦啦啦拉拉阿拉啦啦啦啦啦啦啦今天回家啦啦啦拉拉阿拉啦啦啦啦啦啦啦今天回家啦啦啦拉拉阿拉啦啦啦啦啦啦啦今天回家啦啦啦拉拉阿拉啦啦啦啦啦啦啦今天回家啦啦啦拉拉阿拉啦啦啦啦啦啦啦今天回家啦啦啦拉拉阿拉啦啦啦啦啦啦啦今天回家啦啦啦拉拉阿拉啦啦啦啦啦啦啦今天回家啦啦啦拉拉阿拉啦啦啦啦啦啦啦今天回家啦啦啦拉拉阿拉啦啦啦啦啦啦啦今天回家啦啦啦拉拉阿拉啦啦啦啦啦啦啦今天回家啦啦啦拉拉阿拉啦啦啦啦啦啦啦今天回家啦啦啦拉拉阿拉啦啦啦啦啦啦啦今天回家啦啦啦拉拉阿拉啦啦啦啦啦啦啦今天回家啦啦啦拉拉阿拉啦啦啦啦啦啦啦今天回家啦啦啦拉拉阿拉啦啦啦啦啦啦啦</div>
</body>
<script src=""> </script>
<script type="text/javascript">
<!--
//-->
</script>
</html>
4.8 (案例)径向渐变效果
最后编辑于 :
©著作权归作者所有,转载或内容合作请联系作者
- 文/潘晓璐 我一进店门,熙熙楼的掌柜王于贵愁眉苦脸地迎上来,“玉大人,你说我怎么就摊上这事。” “怎么了?”我有些...
- 文/花漫 我一把揭开白布。 她就那样静静地躺着,像睡着了一般。 火红的嫁衣衬着肌肤如雪。 梳的纹丝不乱的头发上,一...
- 文/苍兰香墨 我猛地睁开眼,长吁一口气:“原来是场噩梦啊……” “哼!你这毒妇竟也来了?” 一声冷哼从身侧响起,我...
推荐阅读更多精彩内容
- 每年到这个时候,身边就会有很多人开始咳嗽、咳痰、流鼻涕、打喷嚏的,有些是感冒、有些是哮喘、有些是气管炎,有些的鼻炎...
- 文:明珠 前天下午我家停电了,当时正写完我的上一篇文章《二月的画|零基础自学画画起步篇》。在点保存的时候,电脑非常...