我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

Homestead php中的绝对css路径

I am creating a web app in php and I am using Homestead to test locally.

I have an MVC structure in my project. Here it is:

enter image description here

The file in the right side of the picture exists inside the 'Views' folder.

When I link a css with a relative path, it works: <link href="/css/bootstrap.min.css"

But when I try to link it with an absolute path it doesn't: <link href="http://fab.app/public/css/bootstrap.min.css"

Why? And how can I fix it?

近期文章

  • 如果缺少尾部斜杠或带参数,PHP重定向到自定义URL
  • 如何在用户选择他们的选择后在PHP中处理测验
  • 如何在codeigniter中路由请求,以便我们可以提供静态css,js和img文件?
  • 从XML节点获取数据
  • 如何在PHPExcel中创建动态图表
  • TCPDF无法正确识别格式
  • 使用ajax循环更改函数jquery
  • 上传拖放图像javascript并用php保存
  • 通过SNMP读取有关设备的信息
  • yii2删除记录错误
  • 使用jQuery,AJAX和PHP单击复选框时更新MySQL字段
  • PHP shell_exec用户的计算机文件
  • MySql,Php未设置为UTF8
  • 如何在laravel 5.2中上传图片
  • Apache mod_rewrite在不同的端口上
  • 类错误:无法声明类
  • 自动分页或类似的东西[关闭]
  • 将远程图像导入wordpress,然后设置为自定义字段
  • 显示具有完整详细信息的类
  • 在MySQL中的WHERE EXISTS查询中使用选定的列

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华