Bootstrap.less 不加载 bootstrap 东西
Bootstrap.less doesn't load bootstrap stuff
Bootstrap.css 适合我,但 bootstrap.less 不适合我。我不太确定为什么,我三次检查了我的文件夹,看看是否所有 .less 文件都在里面,而且它们确实在。 bootstrap.less 和 bootstrap.css 不是一样的,只是更有秩序吗?为了澄清,这:
作品:
<link rel = "stylesheet" href="bower_components/bootstrap/less/bootstrap.less">
<title>Backbone Tutorial Blogroll App</title>
</head>
<body>
<h1> Backbone Tutorial Blogroll App</h1>
<script src="bower_components/jquery/dist/jquery.js"></script>
<script src="bower_components/underscore/underscore.js"></script>
<script src="bower_components/backbone/backbone.js"></script>
</body>
</html>
不起作用 :( :
<!DOCTYPE html>
<html lang = "en">
<head>
<link rel = "stylesheet" href="bower_components/bootstrap/less/bootstrap.less">
<link rel = "stylesheet" href="bower_components/bootstrap/bootstrap.css">
<title>Backbone Tutorial Blogroll App</title>
</head>
<body>
<h1> Backbone Tutorial Blogroll App</h1>
<script src="bower_components/jquery/dist/jquery.js"></script>
<script src="bower_components/underscore/underscore.js"></script>
<script src="bower_components/backbone/backbone.js"></script>
</body>
</html>
LESS 是一种与 CSS 略有不同的样式表语言。许多项目用 LESS 编写样式表,并在浏览器中使用之前使用处理器将其转换为 CSS。
您不需要包含 bootstrap.less
,只需包含 bootstrap.css
,因为 CSS 文件已经在某个时候从 LESS 文件为您生成。
澄清一下,浏览器不能解释任何 LESS,只能解释 CSS。
Bootstrap.css 适合我,但 bootstrap.less 不适合我。我不太确定为什么,我三次检查了我的文件夹,看看是否所有 .less 文件都在里面,而且它们确实在。 bootstrap.less 和 bootstrap.css 不是一样的,只是更有秩序吗?为了澄清,这:
作品:
<link rel = "stylesheet" href="bower_components/bootstrap/less/bootstrap.less">
<title>Backbone Tutorial Blogroll App</title>
</head>
<body>
<h1> Backbone Tutorial Blogroll App</h1>
<script src="bower_components/jquery/dist/jquery.js"></script>
<script src="bower_components/underscore/underscore.js"></script>
<script src="bower_components/backbone/backbone.js"></script>
</body>
</html>
不起作用 :( :
<!DOCTYPE html>
<html lang = "en">
<head>
<link rel = "stylesheet" href="bower_components/bootstrap/less/bootstrap.less">
<link rel = "stylesheet" href="bower_components/bootstrap/bootstrap.css">
<title>Backbone Tutorial Blogroll App</title>
</head>
<body>
<h1> Backbone Tutorial Blogroll App</h1>
<script src="bower_components/jquery/dist/jquery.js"></script>
<script src="bower_components/underscore/underscore.js"></script>
<script src="bower_components/backbone/backbone.js"></script>
</body>
</html>
LESS 是一种与 CSS 略有不同的样式表语言。许多项目用 LESS 编写样式表,并在浏览器中使用之前使用处理器将其转换为 CSS。
您不需要包含 bootstrap.less
,只需包含 bootstrap.css
,因为 CSS 文件已经在某个时候从 LESS 文件为您生成。
澄清一下,浏览器不能解释任何 LESS,只能解释 CSS。