使用 CSS 相關文章


若要選擇所有元素,請使用 * CSS 選擇器。你可以嘗試執行以下程式碼以選擇所有元素,

示例

線上示例

<!DOCTYPE html>
<html>
   <head>
      <style>
         *{
            color: blue;
            background-color: orange;
         }
      </style>
   </head>
   <body>
      <h1>Demo Website</h1>
      <h2>Learning</h2>
      <p id = "tutorials">Tutorials on web dev, programming, database, networking, etc.</p>
      <p>Every tutorials has lessons with illustrations and figures.</p>
   </body>
</html>

更新於: 2020-06-24

193 瀏覽次數

開啟您的職業

完成課程,獲得認證

開始
廣告
© . All rights reserved.