部署到 firebase 时我的 .css 文件损坏

问题描述 投票:0回答:0

当我在我的电脑上打开我的 .html 文件时,我在 firebase 上托管了我的网站。我可以在浏览器的检查模式下调整我的 .css 文件,但是当我将我的项目部署到 firebase 并打开网站时,我的 .css 文件是空的,并且出现错误 404。

this is when i try on my pc.

this is when i deploy to firebase

(它看起来是空的,因为文本是黑色的)

这是我的代码。 HTML

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Test page</title>
    <link rel="stylesheet" href="/publich/page/element/gh.css" />
  </head>
  <body style="background-color: black;">


    <!--ELEMENT-->
    <h1 class="wt">!!! This page for system test olny !!!</h1c>
  </body>
</html>

CSS

.head {
  text-align: center;
  font-family: "kanit";
  font-weight: 700;
  font-size: 100px;
  color: #ffbb33;
}
.title {
  text-align: center;
  font-family: "kanit";
  font-weight: 400;
  font-size: 30px;
  color: white;
}
.inputbox {
  text-align: center;
  font-family: "kanit";
  font-weight: 700;
  font-size: 30px;
  color: #ffbb33;
  width: 800;
}

.cen {
  text-align: center;
  margin-top: 10%;
  height: 0px;
  vertical-align: auto;
}

/* Button */
.bb {
  background-color: #190c53;
  border: none;
  color: white;
  padding: 16px 32px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  margin: 4px 2px;
  transition-duration: 0.4s;
  border-radius: 8px;
  cursor: pointer;
  font-size: 25px;
  width: 500;
}

.yb1 {
  background-color: #190c53;
  color: white;
  border: 2px solid #ffbb33;
}

.yb1:hover {
  background-color: #ffbb33;
  color: white;
}

.bb1 {
  background-color: #190c53;
  color: white;
  border: 2px solid #339cff;
}

.bb1:hover {
  background-color: #339cff;
  color: white;
}

.cen {
  text-align: center;
  margin-top: 10%;
  height: 0px;
  vertical-align: auto;
}

.RS {
  text-align: center;
  font-family: "kanit";
  font-weight: 400;
  font-size: 30px;
  color: #ffbb33;
}

.wt {
  text-align: center;
  font-family: "kanit";
  font-size: 60px;
  font-weight: 500;
  color: red;
}

this is my file position on this project

html css firebase firebase-hosting
© www.soinside.com 2019 - 2024. All rights reserved.