我知道已经有一篇关于弯曲文本的文章,但我正在寻找特定的东西。使用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