使用 CSS 樣式活動連結


若要對活動連結設定樣式,請使用 CSS :active 選擇器。你可以嘗試執行以下程式碼來對活動連結設定樣式

示例

動態演示

<!DOCTYPE html>
<html>
   <head>
      <style>
         a:active {
            background-color: green;
         }
      </style>
   </head>
   <body>
      <a href = "https://qries.com">Welcome to Qries</a>
      <p>Click on the above link to see the effect.</p>
   </body>
</html>

上次更新時間:2020-06-30

807 瀏覽

啟動你的職業

完成課程取得認證

入門
廣告
© . All rights reserved.