【发布时间】:2011-01-11 10:47:00
【问题描述】:
我使用 sifr 作为水平标签的标题。 When the tab is active it must be blue color and the other tab must be in black color.So how do I switch the tab colors when the tabs are clicked.请解释
【问题讨论】:
标签: sifr
我使用 sifr 作为水平标签的标题。 When the tab is active it must be blue color and the other tab must be in black color.So how do I switch the tab colors when the tabs are clicked.请解释
【问题讨论】:
标签: sifr
尝试将此添加到替换 sIFR CSS:
'.sIFR-root {color: #000000; } a { color: #000000;} a:active{ color: #0000FF;}'
然后假设你的 sIFR 选择器是 p:
<p><a href="#">YOUR TAB</a></p>
我假设您的选项卡的正常状态是黑色...您也可以使用 a:hover 进行悬停。例如,当光标悬停在选项卡上时,如果您的选项卡需要为绿色:
a:hover{color:#00FF00}
如果您的文本不合理,您可能会考虑使用 Cufon...Cufon 摇滚,只要它可以合理,我会使用它来做所有事情...它非常快且不依赖于 Flash。
http://cufon.shoqolate.com/generate/
【讨论】: