问题描述
我是laravel的初学者,我正在做我的项目.但管理员LT CSS路径无法正常工作..我已经尝试了很多次.但没有锁..在此处输入图片描述
i am beginner in laravel , im doing my project. but admin lte css path not working.. i had tried many time. but no lock..enter image description here
我在项目根文件夹上创建一个文件夹css.我把所有的css和js文件放进去了.在此处输入图片描述
i create a folder css on project root folder. i put all css and js file in it.enter image description here
<link rel="stylesheet" href="{{ URL::asset('/css/dist/AdminLTE.min.css') }}">
<!-- iCheck -->
<link rel="stylesheet" href="plugins/iCheck/square/blue.css">
<link rel="stylesheet" href="{{ URL::asset('css/plugins/iCheck/square/blue.css') }}">
但没有任何显示...
but nothing show...
但是每当我尝试删除所有文件夹(如bootstrap和dist)时,
but whenever i try delete all folder like bootstrap and dist.
<link href="{{ URL::asset('css/bootstrap.css') }}" rel="stylesheet">
<link href="{{ URL::asset('css/bootstrap.min.css') }}" rel="stylesheet">
<link rel="stylesheet" href="{{ URL::asset('css/AdminLTE.min.css') }}">
<link rel="stylesheet" href="{{ URL::asset('css/AdminLTE.css') }}">
正在工作如何使用文件夹名称实现css和js文件.
is workhow to implements css and js file with folder name.
推荐答案
嘿,这是为Laravel 5实现AdminLTE的简便方法
Hey this is easy way to implement AdminLTE for Laravel 5
https://almsaeedstudio.com/blog/integrate-adminlte-with-laravel 并且不要忘记将其更改为< script src ="{{asset(" bower_components =" adminlte =" plugins =" jquery =" jquery-2.1.4.min.js)="}}"="></script>
https://almsaeedstudio.com/blog/integrate-adminlte-with-laraveland don't forget to Change it to <script src="{{ asset (" bower_components="" adminlte="" plugins="" jquery="" jquery-2.1.4.min.js")="" }}"=""></script>
目录中没有2.1.3.该文件是2.1.4或检查目录.如果您不感兴趣,请右键单击视图检查,您将获得路径,然后更正所需的方式:)
there's no 2.1.3 in directory. the file is 2.1.4 or check the directory.if you not intrest then wright click the view inspect you will get path then correct the way you want :)
这篇关于laravel admin css路径不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!