- 我在虛擬機上運行 Ubuntu。
- 我安裝了 XAMPP。
htdocs是根目錄。- 有問題的檔案:
htdocs/index.php - CSS 目錄:
htdocs/css/,htdocs/lib/
當我在搜索欄中輸入“https://localhost/home/index.php”時,只會加載 html。
我在 Windows 上運行 XAMPP 一年多了,從來沒有遇到任何問題。
我已經在網上嘗試了幾種解決方案,但沒有一個有任何區別。
htdocs/index.php:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Template</title>
<meta content="width=device-width, initial-scale=1.0" name="viewport">
<meta content="" name="keywords">
<meta content="" name="description">
<!-- Favicons -->
<link href="img/favicon.png" rel="icon">
<link href="img/apple-touch-icon.png" rel="apple-touch-icon">
<!-- Google Fonts -->
<link href="https://fonts.googleapis.com/css?family=Open Sans:300,300i,400,400i,700,700i|Montserrat:300,400,500,700" rel="stylesheet">
<!-- Bootstrap CSS File -->
<link href="lib/bootstrap/css/bootstrap.min.css" rel="stylesheet">
<!-- Libraries CSS Files -->
<link href="lib/font-awesome/css/font-awesome.min.css" rel="stylesheet">
<link href="lib/animate/animate.min.css" rel="stylesheet">
<link href="lib/ionicons/css/ionicons.min.css" rel="stylesheet">
<link href="lib/owlcarousel/assets/owl.carousel.min.css" rel="stylesheet">
<link href="lib/lightbox/css/lightbox.min.css" rel="stylesheet">
<!-- Main Stylesheet File -->
<link href="css/style.css" rel="stylesheet">
<!-- =======================================================
Theme Name: Template
Theme URL: https://bootstrapmade.com/bizpage-bootstrap-business-template/
Author: BootstrapMade.com
License: https://bootstrapmade.com/license/
======================================================= -->
</head>
<body>
這是個小問題。任何幫助,將不勝感激。
uj5u.com熱心網友回復:
您是否嘗試過重置瀏覽器快取?
快捷鍵是 SHIFT F5
uj5u.com熱心網友回復:
您可能正在使用瀏覽器快取?也許只是嘗試硬重繪 CTRL F5 (對不起,如果這很明顯,但試試看)
或者
您可以在鏈接 Css 時使用它:
<link href="style.css?<?=filemtime("style.css")?>" rel="stylesheet" type="text/css" />
轉載請註明出處,本文鏈接:https://www.uj5u.com/net/357888.html
