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

來源:互聯網
上載者:User

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/

 

 

相關文章

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.