MDN Formal syntax(正式語法) CSS屬性定義語法

官方文檔orm

速查表文檔

符合 名稱 描述 示例
組合符號
空白 並置 各部分必須出現且按順序出現 solid <length>
&& 「與」組合符 各部分必須出現,但能夠不按順序 &&
|| 「或」組合符 各部分至少出現一個,能夠不按順序 <'border-image-outset'> || <'border-image-slice'>
| 「互斥」組合符 各部分剛好出現一個 smaller | small | normal | big | bigger
[ ] 方括號 強調優先級 bold [ thin && <length> ]
數量符號
無數量符號 剛好一次 solid
* 星號 零次、一次或屢次 bold smaller*
+ 加號 一次或屢次 bold smaller+
? 問號 零次或一次(便可選) bold smaller?
{A,B} 大括號 至少A次,至多B次 bold smaller{1,3}
# 井號 一次或屢次,但屢次出現必須以逗號分隔 bold smaller#
! 歎號 組必須產生一個值 [ bold? smaller? ]!
相關文章
相關標籤/搜索