What’s the diffrence between
linkbelongs to the tags of
@importis provided by
- the link will loading when the web page is loaded, but css that referenced by
@importwill wait until the web page is loaded.
@importjust can be recognized in
ie5and above, but
xhtmltag, doesn’t has the issue of compatibility.
- the weight of the
linkstyle is higher than the weight of
- the difference of controling the style of
dom, we can only use the
linktag when using the
jsto control the
domto change its style. because the
@importis not controllable by the dom.
What’s the difference between @ link and @ import?
- When the page is loaded,
linkWill be loaded at the same time, and
CSSIt will wait until the page is loaded.
IE 5The above can be identified, and
XHTMLLabel, no compatibility issues.
linkThe style weight of the method is higher than that of the method
@importThe weight of the system.
domControl the difference in style. When using
domTo change the style, you can only use