Home  >  Article  >  Web Front-end  >  旋转文字的CSS代码_html/css_WEB-ITnose

旋转文字的CSS代码_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 11:30:551242browse

旋转文字的CSS代码:
文字旋转效果如果使用CSS2很难实现,不过CSS3已经提供现成的属性,下面就是一段这样的代码实例和大家分享一下,希望能够给大家带来借鉴作用,代码如下:

 

<!DOCTYPE html> <html> <head> <meta charset=" utf-8"> <meta name="author" content="http://www.softwhy.com/" /> <title>蚂蚁部落</title><style type="text/css"> .mouth{   font-size:20px;   font-weight:bold;   border:1px solid #F00;   display:block; width:50px;   -webkit-transform: rotate(-90deg);   -moz-transform: rotate(-90deg); } </style> </head> <body> <div class="example"> <span class="mouth">09</span> </div> </body> </html>

 

以上代码实现了文字的旋转效果,这里就刴介绍了,可以参阅CSS的transform属性一章节。 

原文地址是:http://www.softwhy.com/forum.php?mod=viewthread&tid=11600

更多内容可以参阅:http://www.softwhy.com/divcss/

 

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn