public class CSS extends Object implements Serializable
以下介绍了渲染引擎支持的CSS属性:
注:对于时间是我们不完全支持的相对单位,除非注意到,所以,P {保证金顶部:10% }将被视为如果没有保证金顶部指定。
StyleSheet
Modifier and Type | Class and Description |
---|---|
static class |
CSS.Attribute
定义作为一个关键的attributeset可能持有的CSS属性。
|
Constructor and Description |
---|
CSS() |
Modifier and Type | Method and Description |
---|---|
static CSS.Attribute[] |
getAllAttributeKeys()
返回的所有可能的CSS属性键集。
|
static CSS.Attribute |
getAttribute(String name)
将字符串转换为一个
CSS.Attribute 对象。
|
public static CSS.Attribute[] getAllAttributeKeys()
public static final CSS.Attribute getAttribute(String name)
CSS.Attribute
对象。这将返回
null
如果没有给定名称的属性。
name
- CSS属性的名字取的类型安全枚举
CSS.Attribute
对象,或
null
如果字符串不代表一个有效的属性关键
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.