.text{
            font-weight: 600;
            font-size: 30px;
            background-image: url("");
            background-clip: text;
            -webkit-background-clip: text;
            color: transparent;
        }

效果如图所示