【发布时间】:2013-06-20 01:05:16
【问题描述】:
我希望标签位于页面左侧而不是顶部。由于其他原因(效果),我已经在加载 JQuery,所以我更喜欢使用 JQuery 而不是另一个 UI 框架。对“垂直标签 jquery”的搜索会产生指向正在进行的工作的链接。
让垂直选项卡跨浏览器工作是否令人担忧,或者它是如此微不足道,以至于一旦你有了解决方案,似乎就不值得发布示例代码了?
在以下屏幕截图中,垂直选项卡以红色标出:http://cl.ly/image/2y0t1f1L0u00
#tab li {
cursor: pointer;
font-size: 12px;
line-height: 12px;
background: #fff;
border: 1px solid #000;
padding: 10px;
color: #fff;
font-weight: bold;
font-size: 20px;
width: 140px;
height: 130px;
padding: 0 !important;
-webkit-transform: rotate(-90deg) translate(-30px, 60px);
-moz-transform: rotate(-90deg) translate(-30px, 60px);
-ms-transform: rotate(-90deg) translate(-30px, 60px);
-o-transform: rotate(-90deg) translate(-30px, 60px);
filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=3);
}
#tab li a {
display: inline;
margin: 55px 0 0 -25px;
}
【问题讨论】:
标签: jquery html css rotation transform