📜  LESS导入选项

📅  最后修改于: 2021-01-06 04:41:02             🧑  作者: Mango

更少的导入选项

Less @import指令可帮助您导入Less和CSS样式表。

在导入语句中实现的导入指令列表:

Index Import Options Description
1) reference The reference option uses a Less file only as reference . It doesn?t display it as an output.
2) inline The inline option facilitates you to copy your CSS into the output without being processed.
3) less It is treated as a regular Less file, despite whatever may be the file extension.
4) css It is treated as a regular CSS file, despite whatever may be the file extension.
5) once It is used to import the file only one time.
6) multiple It is used to import the file multiple times.
7) optional It is compiled even though the file to import is not found.

注意: @import语句中可以使用多个关键字。您只需要用逗号分隔这些关键字。

例如:

@import (less, optional) "simple.css";