您的位置:首页 > Web前端 > CSS

Vertical Text with CSS(用CSS竖向排列文本)

2010-09-22 00:36 441 查看
CSS代码:
#right-col { 
background-color:#000; 
color:#ff6600; 
width:390px; 
} 
#right-col p { 
-webkit-transform: rotate(-90deg); /* for Safari, Chrome */ 
-moz-transform: rotate(-90deg);    /* for Firefox */ 
-o-transform: rotate(-90deg);       /* for Opera */ 
writing-mode: tb-rl;        /* for IE */        
  filter: flipv fliph; 
}


HTML:
<div id="right-col"><p>FeedBack</p></div>


效果:




参考网页: http://grasshopperpebbles.com/css/vertical-text-with-css/
下面的Solution是用JS实现, 我很喜欢其中Cube的Demo:

http://www.useragentman.com/blog/2010/03/09/cross-browser-css-transforms-even-in-ie/
来自 Freeway —— cnBlogs
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: