[問題] 如何超連結在同一div區塊顯示不同顏色

看板Web_Design作者 (Molly 茉莉花花)時間15年前 (2010/06/23 11:59), 編輯推噓1(102)
留言3則, 2人參與, 最新討論串1/1
請問我想要讓超連結在同一個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

06/23 12:35, , 1F
06/23 12:35, 1F

06/24 00:43, , 2F
繼承關係中id的level比class高~
06/24 00:43, 2F

06/24 00:43, , 3F
改成#where .wherehightlight a{...}試試看^^
06/24 00:43, 3F
文章代碼(AID): #1C8OQO_9 (Web_Design)