Using twitter's bootstrap in jsFiddle

2019-01-17 20:14发布

问题:

I would like to use Twitter's Bootstrap in one of my fiddles. Since jsFiddle does not offer bootstrap as one of its pre-defined libraries, I am looking for a minified url.

Is there a free minified URL for Twitter's Bootstrap?

回答1:

have a look at jsfiddle

@import url('http://twitter.github.com/bootstrap/assets/css/bootstrap.css');

UPDATE

import css or js files from external resources of jsfiddle

you can use bootstrapcdn with specific version of bootstrap e.g 2.3.2 instead of 3.1.1

CSS : //netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css

JS : //netdna.bootstrapcdn.com/bootstrap/3.1.1/js/bootstrap.min.js

working JSFiddle for v3.1.1



回答2:

Try http://jsfiddle.net/DTcHh/241/

using external resources http://netdna.bootstrapcdn.com/bootstrap/latest/css/bootstrap.min.css http://netdna.bootstrapcdn.com/bootstrap/latest/js/bootstrap.min.js

** Below Method No More Working but kept if someday something changes**

As of now select jquery 2.1.0 then you will get bootstrap as an option

Bootstrap 3.2.0 Bootstrap 2.3.2



回答3:

For Bootstrap 3 with included CSS and JS look at this jsfiddle

CSS: //netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css
JS: //netdna.bootstrapcdn.com/bootstrap/3.0.0/js/bootstrap.min.js

Upd: add version 3.1.1 and latest version



回答4:

Try this Content Delivery Network url. It has links to the minified CSS and Javascript. http://www.bootstrapcdn.com/



回答5:

Another alternative to jsFiddle for Bootstrap is:

http://www.bootply.com/new