1
0
mirror of synced 2025-03-10 14:46:10 +03:00

Add rel=stylesheet to the cdn link

Without specifying the rel="stylesheet" in your link tag, some browsers don't interpret the file as css.
This commit is contained in:
Wouter Sioen 2015-02-05 17:34:54 +01:00
parent 470bc9ff64
commit fabbb734e4

View File

@ -71,7 +71,7 @@ slug: home
section of your HTML. section of your HTML.
<pre class="code"> <pre class="code">
&lt;link href="//cdnjs.cloudflare.com/ajax/libs/select2/4.0.0-beta.3/css/select2.min.css" /&gt; &lt;link href="//cdnjs.cloudflare.com/ajax/libs/select2/4.0.0-beta.3/css/select2.min.css" rel="stylesheet" /&gt;
&lt;script src="//cdnjs.cloudflare.com/ajax/libs/select2/4.0.0-beta.3/js/select2.min.js"&gt;&lt;/script&gt; &lt;script src="//cdnjs.cloudflare.com/ajax/libs/select2/4.0.0-beta.3/js/select2.min.js"&gt;&lt;/script&gt;
</pre> </pre>
@ -118,7 +118,7 @@ slug: home
section of your HTML. section of your HTML.
<pre class="code"> <pre class="code">
&lt;link href="path/to/select2.min.css" /&gt; &lt;link href="path/to/select2.min.css" rel="stylesheet" /&gt;
&lt;script src="path/to/select2.min.js"&gt;&lt;/script&gt; &lt;script src="path/to/select2.min.js"&gt;&lt;/script&gt;
</pre> </pre>
</li> </li>