php - 为什么我不能在 PHP 中链接图像、CSS 和 favicon
问题描述
我的 PHP 文件无法在 HTML 部分链接 CSS 或图像或网站图标 我在 HTML 而非 PHP 中多次使用此代码并且它完全有效 我不知道我的代码中有什么问题我
<link rel="icon" type="image/ico" href="GoFixWare logo.ico"> <link rel="stylesheet" href="css/bootstrap">
<img class="d-block mx-auto mb-4" src="GoFixWare-logos_transparent.png" alt="" width="100" height="100">
<img src="img_bg-min.jpg" class="d-block mx-lg-auto img-fluid" alt="Bootstrap Themes" width="700" height="500"
loading="lazy">
我正在使用 xampp
<link rel="stylesheet" href="css/bootstrap">
<link rel="icon" type="image/ico" href="GoFixWare logo.ico">
解决方案
<link rel="icon" type="image/ico" href="GoFixWarelogo.ico">
重命名你的图标,这里有更多href语法:文件名中有空格可以吗
推荐阅读
- symfony4 - 如何在存储库中使用 UserPasswordEncoderInterface 对密码进行编码?
- haskell - 是否有类似于 Haskell 中列表的数据结构,它允许替换 O(1) 中的元素?
- java - 此字符串构造函数(JAVA)的问题
- sql - 多个唯一随机数生成 ms-access
- postgresql - kubernetes 连接到节点 postgres
- opengl - 为什么在 D3D 中需要 RHW
- javascript - JavaScript Promises 混淆反模式?
- java - 如何从管道内或管道运行之前获取数据流作业 ID?
- r - 由于统计信息导入,无法下载 doebioresearch 包
- python-3.x - 用于读取文件并打印是否存在感兴趣行的 Python 脚本