You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: css.html
+3-2Lines changed: 3 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -432,8 +432,9 @@ <h2>15. filter</h2>
432
432
</div>
433
433
<divid="something">
434
434
<h2>16. @import</h2>
435
-
<p><strong></strong></p>
436
-
<p><strong></strong></p>
435
+
<p><strong>Question:</strong> How can you load css resources conditionally?</p>
436
+
<p><strong>Answer:</strong> @import allows you to load/import stylesheet by using a prth (uri) representing the location of the file. You can define one or more media by comma seperation for which you want to load the stylesheet. If browser dont support the media stylesheet will not be loaded.</p>
437
+
<p>ref: be careful while using @import (<ahref="http://www.stevesouders.com/blog/2009/04/09/dont-use-import/">don't use @import</a>)</p>
0 commit comments