laravel css未加载

时间:2016-12-26 19:06:16

标签: css laravel laravel-5.2

所以,我知道之前已经问过这个问题,但它已经解决了仍然不起作用的方式,bootstrap css正在工作,但我的样式表没有加载,但我可以看到css代码很好当我检查页面时。

layout.blade.php

<?php 

$dataToPass = array(
        "A" => array(
                1 => array(
                        "id" => 1,
                        "secondId" => 2,
                        "thirdId" => 3
                )
        ),


        "B" => array(
                1 => array(
                        "id" => 4,
                        "secondId" => 5,
                        "thirdId" => 6
                ),
                2 => array(
                        "id" => 7,
                        "secondId" => 8,
                        "thirdId" => 9
                )
        ),


        "C" => array(
                1 => array(
                        "id" => 10,
                        "secondId" => 11,
                        "thirdId" => 12
                )
        )

);

?>

<!DOCTYPE html>

<html>

<head>

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

<script src="scripts.js"></script>

</head>




<body>

<?php
print_r(json_encode($dataToPass));echo "<br><br>";//check
?>

<button id="someButton">Click me</button>

<form id="TheForm" method="post" action="test.php" target="TheWindow">
    <input type="hidden" name="something" value="<?php echo json_encode($dataToPass); ?>" />
</form>


</body>

</html>

有任何建议,可能是对https和http的干扰吗?

1 个答案:

答案 0 :(得分:1)

你可以试试这个:

<!-- /public/css/main.css -->
<link href="{{ asset('css/main.css') }}">

使用Html::style时,请使用Html::style('css/main.css')而不使用asset()功能。

相关问题