public class CSS extends Object implements Serializable
以下描述了渲染引擎支持的CSS属性:
注意:暂时我们不完全支持相关单位,除非另有说明,否则p {margin-top:10%}将被视为没有指定margin-top。
StyleSheet 
       | Modifier and Type | Class and Description | 
|---|---|
| static class  | CSS.Attribute
              定义用作可能包含CSS属性的AttributeSet的键。 
             | 
| 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.