|
選單
×
×
正確!
練習移除連結的預設下劃線樣式,但在滑鼠懸停在連結上時新增下劃線(hover)。 <style> /* 未訪問連結 */ @(6) {text-decoration: none;} /* 已訪問連結 */ @(9) {text-decoration: none;} /* 滑鼠懸停連結 */ @(7) {text-decoration: underline;} </style> <body> <h1>這是一個標題</h1> <p>這是一個段落</p> <a href="http://w3schools.com">這是一個連結</a> </body>
<style> /* 未訪問連結 */ a:link {text-decoration: none;} /* 已訪問連結 */ a:visited {text-decoration: none;} /* 滑鼠懸停連結 */ a:hover {text-decoration: underline;} </style> <body> <h1>這是一個標題</h1> <p>這是一個段落</p> <a href="http://w3schools.com">這是一個連結</a> </body>
不正確點選這裡 重新嘗試。 正確!下一個 ❯ |
這將重置所有 138 個練習的分數。
您確定要繼續嗎?