HTML代码用H1吧,这样语义化好些,因为标题一般用h1-h6.
<h1 class="vintage">美丽的中国语</h1>
纯CSS制作的复古风格的大标题
.vintage{ background: #EEE url(data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAIAAAAmkwkpAAAAHklEQVQImWNkYGBgYGD4//8/A5wF5SBYyAr+//8PAPOCFO0Q2zq7AAAAAElFTkSuQmCC) repeat; text-shadow: 5px -5px black, 4px -4px white; font-weight: bold; -webkit-text-fill-color: transparent; -webkit-background-clip: text }
CSS空心文字
.stroke{ color: transparent; -webkit-text-stroke: 1px black; letter-spacing: 0.04em; background-color: }
CSS内阴影文字效果
.press { color: transparent; background-color : black; text-shadow : rgba(255,255,255,0.5) 0 5px 6px, rgba(255,255,255,0.2) 1px 3px 3px; -webkit-background-clip : text; }
CSS 实现3D感文字标题
.threed{ color: #fafafa; letter-spacing: 0; text-shadow: 0px 1px 0px #999, 0px 2px 0px #888, 0px 3px 0px #777, 0px 4px 0px #666, 0px 5px 0px #555, 0px 6px 0px #444, 0px 7px 0px #333, 0px 8px 7px #001135 }
text-shadow:#f3f3f3 1px 1px 0px, #b2b2b2 1px 2px 0 另一种字体样式