码迷,mamicode.com
首页 > Web开发 > 详细

css3倒影

时间:2017-02-11 11:17:20      阅读:210      评论:0      收藏:0      [点我收藏+]

标签:head   ima   html   set   round   die   tle   utf-8   text   

<!DOCTYPE html>
<html>
<head>
<title>倒影</title>
<meta charset="utf-8">
<style type="text/css">
.first{
width: 400px;
height: 200px;
margin-left: 500px;
background-image: linear-gradient(to right top,transparent,red);
text-align: center;
line-height: 200px;
font-size: 50px;
/*-webkit-box-reflect可以有三个参数第一个是方向 第二个是位置的偏移量 第三个也可以加个渐变*/
/*above上 below下 left左 ringht右*/
-webkit-box-reflect:left 30px;
}
</style>
</head>
<body>
<div class="first">hello world</div>

</body>
</html>

css3倒影

标签:head   ima   html   set   round   die   tle   utf-8   text   

原文地址:http://www.cnblogs.com/adialike/p/6388649.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!