Testing Bootstrap on jsfiddle

2019-06-08 14:01发布

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 ?

enter image description here

2条回答
何必那么认真
2楼-- · 2019-06-08 14:26

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

查看更多
乱世女痞
3楼-- · 2019-06-08 14:35

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)

查看更多
登录 后发表回答