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>

  

posted on 2017-02-07 15:35  梦如影  阅读(241)  评论(0编辑  收藏  举报