【发布时间】:2015-08-17 13:43:36
【问题描述】:
我正在尝试从https://github.com/FezVrasta/bootstrap-material-design 安装引导程序。但是,当我按照说明进行操作时,它将不起作用。我已将 3 个地图 css、字体和 js 放在公共文件夹中。这是我的 master.blade 视图:
<html>
<head>
<title> @yield('title') </title>
<link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap.min.css" rel="stylesheet">
<!-- Include roboto.css to use the Roboto web font, material.css to include the theme and ripples.css to style the ripple effect -->
<link href="/css/roboto.min.css" rel="stylesheet">
<link href="/css/material.min.css" rel="stylesheet">
<link href="/css/ripples.min.css" rel="stylesheet">
</head>
<body>
@include('shared.navbar')
@yield('content')
<script src="//code.jquery.com/jquery-1.10.2.min.js"></script>
<script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.2/js/bootstrap.min.js"></script>
<script src="/js/ripples.min.js"></script>
<script src="/js/material.min.js"></script>
<script>
$(document).ready(function() {
// This command is used to initialize some elements and make them work properly
$.material.init();
});
</script>
</body>
</html>
【问题讨论】:
-
是的,我的公用文件夹网址目前是localhost/laravel/public
-
首先要检查的是您的浏览器控制台,看看是否有任何文件链接错误。
-
尝试把链接放http
https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap.min.css -
@Shehary 那行不通。
-
@patricksweeney 你到底是什么意思?
标签: twitter-bootstrap laravel-5 bootstrap-material-design