首页 > 解决方案 > 在 localhost XAMPP 的引导程序中加载问题

问题描述

您好,我正在XAMPPlocalhost 服务器上开发一个项目。我正在处理文件E:/xampp/htdocs/main/admin/try.php,我应该将 bootstrap CSS 链接到E:/xampp/htdocs/main/includes/bootstrap/css/bootstrap.min.css.

我已经尝试过使用<link rel="stylesheet" href="E:/xampp/htdocs/main/includes/bootstrap/css/bootstrap.min.css" type="text/css" />但它不起作用我也尝试过使用<link rel="stylesheet" href="localhost/main/includes/bootstrap/css/bootstrap.min.css" type="text/css" />但它们都不适合我。谁能帮我吗。我不想使用 CDN。

标签: csslocalhost

解决方案


You are in admin folder. You should move to main folder. Since admin and includes folders are in the same level then move to includes folder.

You can try

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

推荐阅读