Home  >  Article  >  Web Front-end  >  css引入外部css文件的方式简单介绍_html/css_WEB-ITnose

css引入外部css文件的方式简单介绍_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 11:28:511007browse

css引入外部css文件的方式简单介绍:
如果css代码较多的话,最好要将其单独存放于一个css文件中,然后将其引入,下面就介绍一下常用的引入外部文件的方式。
方式一:

<link rel="stylesheet" href="css/style.css" />

方式二:

@import url(css/style.css)

关于此种方式更多内容可以参阅CSS的@import语法规则一章节。

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn