簡體   English   中英

如何在html中鏈接css

[英]How to link css in html

這是我的網頁鏈接https://dcnetwork.xyz 在這里我的 CSS 不工作我不知道這些是我的文件 index.html 和 style.css 的原因

在此處輸入圖像描述 在此處輸入圖像描述

HTML樣式

我能看到的唯一錯誤是您沒有關閉標簽(第 4 行末尾)只需在行尾添加“>”即可。

CSS 文件加載並為我正常工作。

如果您看不到 CSS 更改 - 有時它有助於進行硬刷新/重新加載:

  • Chrome、Firefox 或 Windows 的 Edge:按 Ctrl+F5(如果不起作用,請嘗試 Shift+F5 或 Ctrl+Shift+R)。
  • 適用於 Mac 的 Chrome 或 Firefox:按 Shift+Command+R。

我們只需要在標題部分簡單地寫 <link r el="stylesheet" href="" 僅在下面顯示

<!DOCTYPE html>
<html>
  <head>
  <link r e l=" s t l y e sheet" h r e f="styles.css">
  <title>Movie Booking</title>
  </head>
</html>

這里“styles.css”是包含 css 屬性的 css 文件

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM