我知道已經有一篇關於彎曲文本的文章,但我正在尋找特定的東西。使用HTML&CSS的彎曲文本
在這個網頁(http://mrcthms.com/)馬克用一種很好的技術爲他的名字曲線文字,但我無法爲我的生活制定出如何複製這項技術。這是我想要的:
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" x-undefined="" />
<title>Curved Text</title>
<style type="text/css">
span {
display: inline-block;
font-family: futura-pt, 'Helvetica Neue', sans-serif;
font-size: 2.5em;
font-weight: 300;
margin: 1px;
}
.arced {
display: block;
text-shadow: rgba(0, 0, 0, 0.298039) 8px 8px;
text-align: center;
margin: 20px;
padding: 50px 0 50px;
}
div span {
text-shadow: rgba(0, 0, 0, 0.298039) 8px 8px;
font-family: futura-pt, 'Helvetica Neue', sans-serif;
font-size: 2.5em;
font-weight: 300;
}
.arced > span:nth-child(1) {
-webkit-transform:translateX(-1px) translateY(68px) rotate(-17deg);
-webkit-transition:0s;
}
</style>
</head>
<body>
<span class="arced">
<span class="char1">S</span>
<span class="char2">T</span>
<span class="char2">E</span>
<span class="char3">V</span>
<span class="char4">E</span>
</span>
</body>
</html>
當然......跨度:第n個孩子(1)僅指第一個字符......我有時候是個白癡!謝謝! – 2013-02-20 21:42:12
沒問題,另一個大腦總是有幫助!隨意接受;) – BenM 2013-02-20 21:47:12