簡體   English   中英

鏈接 CSS 樣式表不起作用

[英]Linking CSS Stylesheet not working

我的 PHP 文件的頭部有兩個 CSS 鏈接。

    <link rel="stylesheet" type="text/css" href="../styles/bootstrap.min.css">
    <link rel="stylesheet" type="text/css" href="../styles/style.css">

第一個(引導程序)有效。 第二個沒有。 他們都在同一條路上。 我已經兩次和三次檢查第二個拼寫是否正確。 我該怎么辦?

在此處輸入圖片說明

檢查您的文件在網站文件夾結構中的位置。

<link rel="stylesheet" type="text/css" href="bootstrap.min.css">
css is located in the same folder as the current page

<link rel="stylesheet" type="text/css" href="styles/bootstrap.min.css">
css is located in the styles folder in the current folder

<link rel="stylesheet" type="text/css" href="/styles/bootstrap.min.css">    
css is located in the styles folder at the root of the current web

<link rel="stylesheet" type="text/css" href="../styles/bootstrap.min.css">  
css is located in the folder one level up from the current folder

暫無
暫無

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

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