我想让我网页中的标题文本像金色一样 我不想要这样的颜色.在这里,我附上了一个我想要的例子。
最佳答案
你可以使用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/