Testing Bootstrap on jsfiddle

旧城冷巷雨未停 提交于 2019-12-08 05:52:33

问题


I'm trying to test some HTML code including bootstrap in jsfiddle, but when including external css references, get this error:

For external CSS files use the Resources panel on the left.

Those external references are hosted somewhere in an outside server, but apparently it's not called correctly.

How should I call external css references or external javascripts ?


回答1:


I think the correct way to call external file on jsfiddle is clicking the left panel External Resources

In your case, just type https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js

Jsfiddle Template




回答2:


Add the references in the CSS panel, closing the style tag with , eg.

</style>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css">

JSFiddle demo (scroll down in the css panel to see it)



来源:https://stackoverflow.com/questions/32280636/testing-bootstrap-on-jsfiddle

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!