CSS / 連結效果 預設連結 CSS Code a { color: #4D2078; text-decoration: underline; } a:hover { color: #0000FF text-decoration: underline; } 連結加底線 CSS Code a { text-decoration : none; color:#4D2078; } a:hover { text-decoration : underline; color:#9900CC; } 雙線連結 CSS Code a { text-decoration: underline overline; color:#4D2078; } a:hover { text-decoration: none color:#9900CC; } 刪除線連結 CSS Code a { text-decoration: line-through color:#4D2078; } a:hover { text-decoration: none color:#9900CC; } 另類框線 CSS Code a { border: 1px #A498BD solid; height: 16px; color:#4D2078; } a:hover { border: 1px #0000FF solid; height: 16px; color:#4D2078; } 設定底線顏色 CSS Code a { border: #A498BD solid; height: 0px; color:#4D2078; border-width: 0px 0px 1px } a:hover { border:#7D1DBD solid; height: 0px; color:#4D2078; border-width: 0px 0px 1px; border-color: #00FF00 #00FF00 #605080 #605080 } 設定底線距離 CSS Code a { border: #A498BD solid; height: 0px; color:#4D2078; border-width: 0px 0px 1px padding-bottom: 5px } a:hover { border:#7D1DBD solid; height: 0px; color:#4D2078; border-width: 0px 0px 1px; padding-bottom: 2px } 設定底線長度和對齊方式 CSS Code a { border: #A498BD solid; height: 0px; color:#4D2078; border-width: 0px 0px 1px width: 200px; text-align: center } a:hover { border:#7D1DBD solid; height: 0px; color:#4D2078; border-width: 0px 0px 1px; width: 170px; text-align: center } 雙底線加粗 CSS Code a { border: #A498BD solid; height: 0px; color:#4D2078; border-width: 0px 0px 1px padding-bottom: 5px } a:hover { border:#7D1DBD solid; height: 0px; color:#4D2078; border-width: 0px 0px 1px; padding-bottom: 2px } 下壓按鈕連結 CSS Code a { color: #4D2078; text-decoration: none } a:hover { color: #9900CC; position: relative; left: 1px; top: 1px; clip: rect( ) } 塊狀連結 CSS Code a { border: 1px #A498BD solid; color: #4D2078; clip: height; background-color: #EEEBFF; height: 20px; padding-top: 5px; padding-right: 5px; padding-bottom: 5px; padding-left: 5px; width: 130px: 0px } a:hover { border: 1px #605080 solid; color: #9900CC; clip: height; background-color: #BDAAE2; height: 20px; padding-top: 5px; padding-right: 5px; padding-bottom: 5px; padding-left: 5px; width: 130px: 0px } .t1 a{ color: #fff;text-decoration: underline; } .t1 a:hover{ color:#8dd3ff;text-decoration: underline } .t2 a{ text-decoration : none; color:#fff; } .t2 a:hover{ text-decoration : underline;color:#8dd3ff; } .t3 a{ color: #fff; text-decoration: underline overline;} .t3 a:hover{ color: #8dd3ff; text-decoration: none } .t4 a{ color: #fff; text-decoration: line-through} .t4 a:hover{ color: #8dd3ff; text-decoration: none } .t5 a{ border: 1px #fff solid; height: 16px; color: #fff} .t5 a:hover{ border: 1px #8dd3ff solid; height: 16px; color: #8dd3ff} .t6 a{ border: #fc6 solid; height: 0px; color: #fff; border-width: 0px 0px 1px} .t6 a:hover{ border:#7D1DBD solid; height: 0px; color: #8dd3ff; border-width: 0px 0px 1px; border-color: #fff #fff #FF6 #FF6} .t7 a{ border: #A498BD solid; height: 0px; color: #fff; border-width: 0px 0px 1px; padding-bottom: 5px} .t7 a:hover{ border: #FF6 solid; height: 0px; color: #FF6; border-width: 0px 0px 1px; padding-bottom: 2px} .t8 a{border: #A498BD solid; height: 0px; color: #fff; border-width: 0px 0px 1px; width: 200px; text-align: center} .t8 a:hover{ border: #605080 solid; height: 0px; color: #FF6; border-width: 0px 0px 1px; width: 170px; text-align: centerx} .t9 a{border: #A498BD double; height: 0px; color: #fff; border-width: 0px 0px 3px} .t9 a:hover{ border: #605080 double; height: 0px; color: #FF6; border-width: 0px 0px 5px} .t10 a{color: #fff; text-decoration: none} .t10 a:hover{ color: #FF6; position: relative; left: 1px; top: 1px; clip: rect( )} .t11 a{border: 1px #A498BD solid; color: #000; clip: height; background-color: #fff; height: 20px; padding-top: 5px; padding-right: 5px; padding-bottom: 5px; padding-left: 5px; width: 130px: 0px} .t11 a:hover{ border: 1px #605080 solid; color: #000; clip: height; background-color: #FF6; height: 20px; padding-top: 5px; padding-right: 5px; padding-bottom: 5px; padding-left: 5px; width: 130px: 0px}