目前最常使用的 CSS 語法,就是控制超連結的顏色與底線,
 你可以依樣畫葫蘆,將下列虛線中的語法貼在 html 語法中
 <head> ..... </head> 之間:
 [語法]
 ---------------------------------------------------------------------------
 <style type="text/css">
 <!--    
                A:link {text-decoration: none ; color: 0000ff }
    A:visited {text-decoration: none ; color: 0099ff }
    A:active {text-decoration: none ; color: 0099ff }
    A:hover {text-decoration: underline ; color: cc0066}
 -->
 </style>
 --------------------------------------------------------------------------

 [說明]

 1. 你可以自己更改色碼 (#xxxxxx),換上你喜歡的顏色,
  若需要加底線,就將 none 改成 underline 即可,試試看。

 2. 為了避免有些瀏覽器將 <style> ..... </style> 標記間的敘述
  當成普通字,而顯現在網頁上,因此建議將敘述文字放在
  html 註釋語句 <!-- ..... --> 中。
arrow
arrow
    全站熱搜
    創作者介紹
    創作者 g7g1g3 的頭像
    g7g1g3

    隨身筆記本

    g7g1g3 發表在 痞客邦 留言(0) 人氣()