作者niniangel (Molly 茉莉花花)
看板Web_Design
標題[問題] 如何超連結在同一div區塊顯示不同顏色
時間Wed Jun 23 11:59:17 2010
請問我想要讓超連結在同一個div區塊 可是可以讓其中一縣市是被放大的
其他都還是原本大小並且有連結 要怎麼做呢?
我現在這樣設定可是台北還是承襲where a的樣式 並沒有套用到class樣式 .
Html如下:
<div id="where">
<span class="wherehightlight"><a href="#">台北</a></span>
<a href="#">桃園</a>
<a href="#">新竹</a>
<a href="#"> 台中</a>
<a href="#"> 高雄</a>
</div>
css:
#where a:link{
color:#8E63B7;
text-decoration: none;
font-size:13px;
}
#where a:visited{color:#8E63B7; text-decoration: none; }
#where a:hover{color:#8E63B7; text-decoration: underline; }
#where a:active{
color:#8E63B7;
text-decoration: none;
}
.wherehightlight {
color:#eb0000;
text-decoration: none;
font-size:24px;
}
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 60.251.154.220
推 ateclean:繼承關係中id的level比class高~ 06/24 00:43
→ ateclean:改成#where .wherehightlight a{...}試試看^^ 06/24 00:43