일부 텍스트에는 순수한 CSS3 그라디언트 (이미지 없음 등)를 적용하려고하지만 텍스트는 변경되지 않습니다.CSS3 텍스트 그라디언트가 작동하지 않습니까?
내 현재 코드는 다음과 같습니다
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Text Gradients</title>
<style>
/* The gradient class */
.gradient {
-webkit-mask-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(252,255,244,1)), color-stop(100%,rgba(233,233,206,1)));
}
</style>
</head>
<body>
<!--The text with the gradient-->
<h1 class="gradient"> Hello World </h1>
</body>
</html>
이 CSS3 그라데이션 생성기를 사용해보십시오 : HTTP : // www.colorzilla.com/gradient-editor/ – Lowkase
어떤 브라우저를 사용하고 있습니까? –