gpt4 book ai didi

javascript - 如何使用CSS3制作金色效果文字

转载 作者:太空狗 更新时间:2023-10-29 15:26:51 25 4
gpt4 key购买 nike

我想让我网页中的标题文本像金色一样 我不想要这样的颜色.在这里,我附上了一个我想要的例子。 Gold text example

最佳答案

你可以使用svg来获得效果

svg 的在线渐变生成器 - http://10k.aneventapart.com/1/Uploads/319/

svg {
text-shadow: -1px 0px 1px rgb(97, 100, 5);
}
<svg width="550" height="50" xmlns="http://www.w3.org/2000/svg">
<defs>
<linearGradient id="grad2" y2="1" x2="1" id="g" x1="1" y1="0.1433">
<stop stop-color="rgb(255, 213, 127)" offset="0" />
<stop stop-color="rgb(179, 149, 0)" offset="0.4817" />
<stop stop-color="rgb(179, 149, 0)" offset="1" />
</linearGradient>
</defs>
<text font-family="arial" font-size="40" id="svg_1" y="45" x="288" fill="url(#grad2)" font-weight="bold">
<tspan x="10" y="45">JANDUS TECHNOLOGIES</tspan>
</text>
</svg>

关于javascript - 如何使用CSS3制作金色效果文字,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29643842/

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