當前位置:聚美館>智慧生活>心理>

html裏爲什麼有的下劃線去不了

心理 閱讀(7.41K)
html裏爲什麼有的下劃線去不了

1、

透過“a{text-decoration: none}”設定a標籤的默認狀態去除下劃線

2、

透過“a:visited{text-decoration:

none}”設定a標籤的訪問過後的狀態去除下劃線等等。

HTML a標籤去除下劃線

a{text-decoration: none} //這個是設定a標籤的默認狀態去除下劃

a:visited{text-decoration: none} //這個是設定a標籤的訪問過後的狀態去除下劃線

a:hover {text-decoration: none} //這個是設定a標籤的鼠標覆蓋狀態去除下劃線

a:active{text-decoration:none} //這個是設定a標籤的活躍狀態去除下劃