css - 在 localhost XAMPP 的引导程序中加载问题
问题描述
您好,我正在XAMPP
localhost 服务器上开发一个项目。我正在处理文件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。
解决方案
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" />
推荐阅读
- android - 调试 apk 工作正常,但签名 apk 无法正常工作
- blockchain - 坚固地创造一个房间
- django - 表单错误未显示在 UpdateView 中
- prestashop - Prestashop 中的钩子是什么?
- python - for循环中的递归python函数
- django - 在 django orm 中使用多字段进行过滤
- php - 如何优化选择 300.000 行的 MySQLl 代码 +
- python - 如何将数字添加到 sqlite3 列值
- ios - 将单个 Firebase 数据分配给全局变量 swift ios
- angular - 以角度将输入绑定到组件