61,115
社区成员
发帖
与我相关
我的任务
分享
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<title> 页面名称 </title>
<style type="text/css">
body {
background-color: #000;
}
.f {
width: 400px;
height: 40px;
color: #fff;
position: relative;
margin-left: 20px;
background-color: #09f;
background-image: -webkit-gradient(linear, 0 100%, 0 0, from(#09f), to(#000));
background-image: -webkit-linear-gradient(90deg, #09f, #000);
background-image: -moz-linear-gradient(90deg, #09f, #000);
background-image: -o-linear-gradient(90deg, #09f, #000);
background-image: linear-gradient(90deg, #09f, #000);
transform: perspective(600px) rotateY(40deg);
}
.f:before {
content: "";
width: 0px;
height: 0px;
position: absolute;
top: 0;
left: -40px;
border: 20px solid transparent;
border-right-color: #09f;
}
</style>
</head>
<body>
<div class="f">text</div>
</body>
</html>