Home Web Front-end Front-end Q&A There are several ways to introduce external css

There are several ways to introduce external css

Oct 12, 2021 pm 04:51 PM
css external css

There are two ways to introduce external css, namely: 1. Introduction through the "@import" instruction, the syntax "@import url (css file path);>"; 2. Introduction through the link tag, Syntax "".

There are several ways to introduce external css

The operating environment of this tutorial: Windows 7 system, CSS3&&HTML5 version, Dell G3 computer.

Two ways to introduce CSS

1. Import through the @import directive

@import directive is part of the CSS language. When using it, add this directive to a