在国外网站上看到的一段代码~
作者:admin 日期:2010-10-04
涉及到层绝对定位,文字竖排,值得收藏!
<!--twitterBadge by neo22s-->
<style>.twitterBadge{ position:fixed;top:300px;right:0;width:30px;font-size:20px; font-family:Verdana, Geneva, sans-serif;-webkit-transform: rotate(-90deg);-moz-transform: rotate(-90deg);background-color:#76AF4C;}
.twitterBadge a{background-image:url("http://lab.neo22s.com/twitterBadge/twittbird.png");background-repeat:no-repeat;background-position:top right;text-decoration:none;background-color:#76AF4C;color:#EAF6E5;padding:0 35px 5px 10px;}</style>
<!--[if IE]><style>.twitterBadge {top:200px;writing-mode: tb-rl; filter: flipv fliph;}.twitterBadge a {background-image:url("http://lab.neo22s.com/twitterBadge/twittbird-ie.png");background-position:left;padding:7px 0 32px 0}</style><![endif]-->
<div class="twitterBadge">
<a target="_blank" title="openclassifieds on Twitter" href="http://twitter.com/openclassifieds">Follow me</a>
</div>
<!--end twitterBadge-->
广告位