the link belongs to the tags of xhtml, but @import is provided by css
the link will loading when the web page is loaded, but css that referenced by @import will wait until the web page is loaded.
the @import just can be recognized in ie5 and above, but link is xhtml tag, doesn't has the issue of compatibility.
the weight of the link style is higher than the weight of @import
the difference of controling the style of dom, we can only use the link tag when using the js to control the dom to change its style. because the @import is not controllable by the dom.
评论
登录后参与技术讨论,分享你的经验与见解。
登录 / 注册暂无评论