练习仓库
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
699 B

2 days ago
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  6. <title>Document</title>
  7. <link rel="stylesheet" href="./public.css">
  8. </head>
  9. <body>
  10. <p style="color: red; font-size: 20px;">这是外部样式</p>
  11. <!-- CSS 的优先级顺序是从低到高依次为外部样式表、内部样式表、内联样式。内联样式直接写在 HTML 元素的 style 属性中,所以它离目标元素最近,优先级也就最高。 -->
  12. <a>这是外部样式</a>
  13. <!-- 外部样式可以通过一个文件进行整个网页的样式调整,极大地增强了复用性和可维护性 -->
  14. </body>
  15. </html>