簡體   English   中英

CSS樣式表未鏈接

[英]CSS Stylesheet Not Linking

問題:樣式表未在頁面上顯示樣式。

已檢查:它已正確鏈接,甚至在檢查頁面時顯示在源下,我嘗試清除緩存以確保不是。

碼:

<html>
<head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
    <link rel="stylesheet" type="text/css" href="../style/reglog_style.css">
    <link rel="stylesheet" type="text/css" href="http://t-off.tk/style/style.css">

    <title>Register</title>
</head>
<body cz-shortcut-listen="true">
    <h1>This is the webpage header</h1>
    <h2>This is the page content</h2>
    <h1> This is the footer at the bottom of the page, it is under construction </h1>
</body>
</html>

樣式表:

style.css:

<style>
  body {
      background: #2d343d;
  }
</style>

reglog_style.css:

<style>
  body {
      background: #2d343d;
  }
</style>

任何關於正在發生的事情的想法將不勝感激,我在這里茫然。 謝謝!

正如@SamiKuhonen回答的那樣,我必須刪除

<style></style>

暫無
暫無

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

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