我有一個被標記了,像這樣一個滑塊:這是CSS引用正確的,支持的語法:.slider.wide {}
<div class="slider wide">
//slider html in here
</div>
而另一標記像這樣:
<div class="slider narrow">
//slider html in here
</div>
是有可能通過一種方式相互引用的這些像這樣在我的CSS文件拼接類名:
.slider.wide { //css specific to the wide slider goes here }
.slider.narrow { //css specific to the wide slider goes here }
感謝您 - 我擔心在IE6(或者甚至任何瀏覽器)中的瀏覽器支持會成爲問題。乾杯! – Steph 2010-09-03 12:20:20