【发布时间】:2018-10-09 06:22:45
【问题描述】:
我正在尝试导入 css 文件,但我就是不能。
我的 css 文件在“public/css/style.css”中
我已经尝试了我在互联网上找到的所有可能的组合,但没有任何效果
<link href="/css/style.css" rel="stylesheet">
<link href="{!! asset('css/style.css') !!}" media="all" rel="stylesheet" type="text/css" />
<link rel="stylesheet" href="{{ URL::asset('css/style.css') }}" />
Laravel .htaccess
<IfModule mod_rewrite.c>
<IfModule mod_negotiation.c>
Options -MultiViews -Indexes
</IfModule>
RewriteEngine On
# Handle Authorization Header
RewriteCond %{HTTP:Authorization} .
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
# Redirect Trailing Slashes If Not A Folder...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} (.+)/$
RewriteRule ^ %1 [L,R=301]
# Handle Front Controller...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]
</IfModule>
但没有什么对我有用
【问题讨论】: