gpt4 book ai didi

html - 如何为图标赋予渐变色?

转载 作者:行者123 更新时间:2023-11-28 04:27:57 24 4
gpt4 key购买 nike

<分区>

我正在尝试为图标提供渐变颜色。虽然这适用于文本标签,但它不适用于我的图标。任何建议将不胜感激。

.way_icon h3{
font-size: 40px;
background:-moz-linear-gradient(top, #e72c83 0%, #a742c6 100%);
background: -webkit-linear-gradient(top, #e72c83 0%,#a742c6 100%);
background: linear-gradient(to bottom, #e72c83 0%,#a742c6 100%);
-webkit-background-clip: text;
-moz-background-clip: text;
background-clip: text;
-webkit-text-fill-color:transparent;
<div class="way_icon">
<h3>jfkfjfjr<i class="ion-ios-gear"></i></h3>
<a href="#"><i class="ion-ios-gear"></i></a>
</div>
<link href="https://code.ionicframework.com/ionicons/2.0.1/css/ionicons.min.css" rel="stylesheet"/>

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com