What is the difference between using link and @import in css?

  • link is an XHML tag, in addition to loading css files, you can also load other transactions of RSS, while @import can only load css
  • Link has no browser compatibility issues, import is supported in lower version browsers
  • When the link tag references the css file, it is loaded at the same time as the page is loaded; @import can only be loaded after the page is fully loaded

Guess you like

Origin blog.csdn.net/weixin_43956521/article/details/112538424