最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - what is the difference between bootstrap.min.css and bootstrap.min.js? - Stack Overflow

programmeradmin1浏览0评论

what is the difference between bootstrap.min.css and bootstrap.min.js ? Why bootstrap.min.js need to be included?

<link rel="stylesheet" href=".3.6/css/bootstrap.min.css">

and

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

what is the difference between bootstrap.min.css and bootstrap.min.js ? Why bootstrap.min.js need to be included?

<link rel="stylesheet" href="http://maxcdn.bootstrapcdn./bootstrap/3.3.6/css/bootstrap.min.css">

and

<script src="http://maxcdn.bootstrapcdn./bootstrap/3.3.6/js/bootstrap.min.js"></script>
Share Improve this question edited Mar 10, 2016 at 12:33 James Thorpe 32.2k6 gold badges75 silver badges94 bronze badges asked Mar 10, 2016 at 12:31 vishwavishwa 551 silver badge3 bronze badges 0
Add a ment  | 

5 Answers 5

Reset to default 6

They're both minified versions of the plete Bootstrap style (CSS) and ponents (JS). You don't need to include the JS to use the Bootstrap styles (responsive grid, buttons, tables, typography, panels, etc..).

However, you do need to include the JS if you want to use the Bootstrap JavaScript ponents (modal, carousel, data-attributes, scrollspy, tooltop, etc..).

Bootstrap.min.css contains the CSS necessary for the Bootstrap to work correctly.

Some of the functionality offered by the bootstrap aren't possible though using only plain .css and this is where javascript es into play.

Bootstrap.min.js contains javascript code necessary for running Bootstrap.

.css is a stylesheet file and .js is javascript file

all javascript ponents of bootstrap are bundled into bootstrap.min.js

Well min.css obviously minifies the style for core bootstrap CSS while min.js minifies javascript modules. I think you should google some basic web tutorials before you start working with bootstrap.

You can need their own functions, check this: http://getbootstrap./javascript/

发布评论

评论列表(0)

  1. 暂无评论