【发布时间】:2018-01-20 03:23:28
【问题描述】:
我使用了一个名为 http://css3buttongenerator.com/ 的网站并添加了一个文本渐变,但由于某种原因,我不确定它是否没有在页面上显示所有的 css 编码。
.button {
background: linear-gradient(330deg, #e05252 0%, #99e052 25%, #52e0e0 50%, #9952e0 75%, #e05252 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
-webkit-border-radius: 60;
-moz-border-radius: 60;
border-radius: 60px;
font-family: Arial;
font-size: 60px;
background: #fff;
padding: 10px 20px 10px 20px;
text-decoration: none;
}
.button:hover {
background: #000;
text-decoration: none;
background: linear-gradient(150deg, #e05252 0%, #99e052 25%, #52e0e0 50%, #9952e0 75%, #e05252 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
<div>
<a class="button" href="course.html">Start</a>
</div>
【问题讨论】: