Home > PHP Framework > Laravel > body text

How to introduce css in laravel

藏色散人
Release: 2021-06-02 08:59:52
Original
2932 people have browsed it

How to introduce css in laravel: first find and open the public folder; then pass "

How to introduce css in laravel

##The operating environment of this article: Windows 7 system, Laravel version 5.7, DELL G3 computer

Laravel introduces css and js files

laravel默认从public开始,所以静态文件放到public下开始,只需要把你想要加载的css文件和js文件放入public文件夹中即可。

这里以我用得layui为例:
Copy after login

Just load them in the project file:

 <link rel="stylesheet" href="{{URL::asset('layui-v2.5.4/layui/css/layui.css ')}}">

 

# Related recommendations: The latest five Laravel video tutorials

##

The above is the detailed content of How to introduce css in laravel. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template