HTML代码用H1吧,这样语义化好些,因为标题一般用h1-h6.

 

<h1 class="vintage">美丽的中国语</h1>

纯CSS制作的复古风格的大标题

 

css-heading-01

.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空心文字

css-heading-02

.stroke{
color: transparent;
-webkit-text-stroke: 1px black;
letter-spacing: 0.04em;
background-color: }

 
 
 

CSS内阴影文字效果

css-heading-03

.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感文字标题

css-heading-04

.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 另一种字体样式
posted on 2017-08-28 09:43  缘来狠狂  阅读(8239)  评论(0编辑  收藏  举报