Css_制作旋转字体


/*
* PS:旋转层的背景是必须的,不然IE8以下使用滤镜旋转会让字体变模糊,效果不太好.
*/
<
style type="text/css"> .box{position:relative;width:20px;height:200px;background:#CCC;margin:50px;overflow:hidden;} .main{position:absolute;width:100px;height:100px;line-height:100px;top:10px;left:50%;margin-left:-50px;color:#FFF;text-align:left;} .main{-moz-transform:rotate(90deg);-webkit-transform:rotate(90deg);-o-transform:rotate(90deg);-ms-transform:rotate(90deg);transform:rotate(90deg);} </style> <!--[if lte IE 8]> <style> .main{filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=1);background:#CCC;} </style> <![endif]--> <div class="box"> <div class="main">hello world!!</div> </div>


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM