.wrap{
margin:20px;
float:left;
position:relative;
}
.background {
width: 150px;
height: 150px;
border-radius: 100%;
background: white;
position:absolute;
top:0;
left:0;
z-index:4;
}
.text {
position:absolute;
top: 25px;
left: 25px;
z-index:5;
background: -webkit-radial-gradient(top left, rgb(23, 39, 34) 4%, rgb(56, 99, 99) 37%, rgb(22, 27, 15) 73%, rgb(22, 27, 14) 93%, #232323 100%);
font-family: Proxima Nova, Helvetica, sans-serif;
font-weight:bold;
line-height:100px;
font-size: 36px;
color: #666;
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
body{
background: -webkit-radial-gradient(top left,rgb(23, 39, 34) 4%,rgb(56, 99, 99) 37%,rgb(22, 27, 15) 73%,rgb(22, 27, 14) 93%,#232323 100%);
width:100%;
height:100%;
}
html{
height:100%;
}
<div class="wrap">
<div class="background"></div>
<div class="text">MORE</div>
</div>
你會有另一個圖像嗎?爲什麼不用白色給文本着色? – bfavaretto 2013-03-19 18:20:05
是的,會有另一個背後的圖像。 – 2013-03-19 18:22:49
所以你可能想嘗試'-webkit-mask-image:url(the_bg_image.png);' – bfavaretto 2013-03-19 18:25:40