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:
parent
470bc9ff64
commit
fabbb734e4
1 changed files with 2 additions and 2 deletions
|
@ -71,7 +71,7 @@ slug: home
|
|||
section of your HTML.
|
||||
|
||||
<pre class="code">
|
||||
<link href="//cdnjs.cloudflare.com/ajax/libs/select2/4.0.0-beta.3/css/select2.min.css" />
|
||||
<link href="//cdnjs.cloudflare.com/ajax/libs/select2/4.0.0-beta.3/css/select2.min.css" rel="stylesheet" />
|
||||
<script src="//cdnjs.cloudflare.com/ajax/libs/select2/4.0.0-beta.3/js/select2.min.js"></script>
|
||||
</pre>
|
||||
|
||||
|
@ -118,7 +118,7 @@ slug: home
|
|||
section of your HTML.
|
||||
|
||||
<pre class="code">
|
||||
<link href="path/to/select2.min.css" />
|
||||
<link href="path/to/select2.min.css" rel="stylesheet" />
|
||||
<script src="path/to/select2.min.js"></script>
|
||||
</pre>
|
||||
</li>
|
||||
|
|
Loading…
Add table
Reference in a new issue