CSS值定义的语法 Value Definition Syntax
来源:互联网 发布:淘猫流量被淘宝过滤了 编辑:程序博客网 时间:2024/05/20 14:19
Component values may be arranged into property values as follows:
属性值由各组件成分组成,如下:
- Several juxtaposed words mean that all of them must occur, in the given order.
- 几个并列的值,必须要有,在指定的顺序。
- A bar (|) separates two or more alternatives: exactly one of them must occur.
- 一条杆(|),分解出两个或两个以上可选方案,其中之一必须要有。
- A double bar (||) separates two or more options: one or more of them must occur, in any order.
双杆(| |),分解出两个或两个以上的可选项,其中一个或多个必须要有,在任何顺序。
- A double ampersand (&&) separates two or more components, all of which must occur, in any order.
- 双与字符(& &),分解出两个或多个组件,所有这些都必须要有,在任何顺序。
- Brackets ([ ]) are for grouping.
- 方括号([])用来分组,分解成子表达式。
Juxtaposition is stronger than the double ampersand, the double ampersand is stronger than the double bar, and the double baris stronger than the bar. Thus, the following lines are equivalent:
匹配优先顺序:并列 > && > || > | 。下面例子两行是一样的。
a b | c || d && e f [ a b ] | [ c || [ d && [ e f ]]]
Every type, keyword, or bracketed group may be followed by one ofthe following modifiers:
每种类型、关键字或相等的组,紧随其后的可能是接着一个特殊字符:
- An asterisk (*) indicates that the preceding type, word, or group occurs zero or more times.
- 星号(*),表示前面的类型,单词,或子表达式,匹配零次或更多。
- A plus (+) indicates that the preceding type, word, or group occurs one or more times.
- 加号(+),表示前面的类型,单词,或子表达式,匹配一次或多次。
- A question mark (?) indicates that the preceding type, word, or group is optional.
- 问号(?),表明前面的类型,单词,或子表达式,匹配是可选的。
- A pair of numbers in curly braces ({A,B}) indicates that the preceding type, word, or group occurs at least A and at most B times.
- 一对数字花括号({ A、B }),表明前面的类型,单词,或子表达式,两个项之间(含)进行选择。
The following examples illustrate different value types:
下面的例子说明了不同的值类型:
Value: N | NW | NE
Value: [ <length> | thick | thin ]{1,4}
Value: [<family-name> , ]* <family-name>
Value: <uri>? <color> [ / <color> ]?
Value: <uri> || <color>
Value: inset? && [ <length>{2,4} && <color>? ]
- CSS值定义的语法 Value Definition Syntax
- 树的定义definition
- BPM Definition,BPM 的定义
- 用于CSS属性定义的语法
- #595 – 定义事件处理函数的语法(Syntax Choices for Defining an Event Handler)
- SQL语句的语法-Data Definition Statements
- Context Switch Definition:上下文切换的定义
- CSS属性定义与语法
- CSS Syntax
- CSS Syntax
- 1.6 - [syntax] - 【语法】
- Basic Syntax基本语法
- Protocol Buffer 语法(syntax)
- JSP - Syntax(语法)
- Perl Regular Expression Syntax Perl的正则表达式语法
- CSS的语法
- css的基本语法
- CSS的知识语法
- c标签的 url import 和 redirect
- 在mysql中修改了密码,但是使用java还是连接不上数据库
- 五分钟了解什么是Openstack
- android 开发问题集,android问题总结,android错误解决收集
- LightOJ 1258 Making Huge Palindromes (回文&KMP)
- CSS值定义的语法 Value Definition Syntax
- 有关QlikView循环的疑惑
- Eclipse格式化代码
- 自己总是在犯错啊!!!不过这次到顶峰了,以后心理上心态上就从容很多!!
- MySQL Change root Password
- Centos6.5 关闭防火墙 iptables
- Android创建数据
- jstl函数标签库
- 针对Github的Git工具快速配置——当Github for windows无法下载时。。。