h3{ font-size: 16px; font-weight: 500; display: inline-block; color: #d6a736; background-image: -webkit-linear-gradient(-45deg,#fae2a7 0%, #d6a736 40%, #d6a736 60%,#fae2a7 100%); background-image: linear-gradient(-45deg,#fae2a7 0%, #d6a736 40%, #d6a736 60%,#fae2a7 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
HTML
<h3>文字颜色渐变</h3>
时间: 2024-11-08 14:02:49