JSFiddle中的外部资源(添加Twitter Bootstrap CDN) [英] External resources in JSFiddle (Adding Twitter Bootstrap CDN)
问题描述
我正在尝试使用 JSFiddle 复制我的问题,但是当不需要本地支持的框架时,我相信我会需要从外部资源导入它们.但是,单击 + 不会打开任何内容,我不确定如何处理URI字段.
I am trying to replicate my issue with JSFiddle but when needed frameworks not supported natively, I believe I will need to import them from external resources. However, clicking + won't open up anything and I am not sure what to do with the URI field.
一个简单的问题是,我特别需要嵌入Bootstrap.
The simple question is, I particularly need to embed Bootstrap.
如何将Bootstrap嵌入JSFiddle中?
How do I embed Bootstrap in JSFiddle?
推荐答案
JSFiddle支持BootstrapCDN,您只需粘贴相关的URL.
BootstrapCDN is supported by JSFiddle, you just need to paste in the relevant URLs.
在外部资源字段/框中,输入以下每个URL *,然后点击 + :
In the external resource field/box enter each of these URLs* and hit +:
http://netdna.bootstrapcdn.com/twitter-bootstrap/2.3.2/css/bootstrap-combined.min.css
http://netdna.bootstrapcdn.com/twitter-bootstrap/2.3.2/js/bootstrap.min.js
其结果是: http://jsfiddle.net/v9ec3/1/
然后,您可以根据需要发布HTML/CSS/JS.编辑完成后单击update
,以提供一个URL,您可以将其粘贴到任何地方(包括此处!).请注意,您无需通过链接进行引用.
Which then allows you to post your HTML/CSS/JS as required. Edit away and click update
when finished to give you a URL that you can paste anywhere (including here!). Note you don't need to reference it via link.
****注意:**上面的引导程序版本URL(2.3.2)是从 http://www粘贴的.bootstrapcdn.com 在提出问题时*
****Note:** The above bootstrap version URLs (2.3.2) are pasted from http://www.bootstrapcdn.com at the time of the question*
这篇关于JSFiddle中的外部资源(添加Twitter Bootstrap CDN)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!