简体   繁体   English

Laravel Blade 不会显示 css

[英]Laravel Blade won't show css

I have this blade where I am sending data via compact, and in the url I have the id.我有这个刀片,我通过压缩发送数据,在 url 中我有 id。 But it won't load the css that I am using in other pages.但它不会加载我在其他页面中使用的 css。

here is the header code : which is by the way working in other blades.这是标题代码:顺便说一下,它在其他刀片中工作。 Does anyone have an idea why it is not working here ?有谁知道为什么它在这里不起作用?

<!DOCTYPE html>
<html>
<head>
    @include('header')
    @yield('header')

</head>
<body>
<br><br><br>
<br><br><br>
<br><br><br>


<br><br><br><br>
<br><br><br><br>

<div class="content">

It works now fine by using assets instead of simple src .现在通过使用 assets 而不是简单的 src 可以正常工作。

<script src="{{ asset('js/jquery.flexslider-min.js') }}"></script>

<script src="js/bootstrap.min.js"></script>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM