public enum Display extends Enum<Display>
| Enum Constant and Description |
|---|
block
块级元素
|
inlineBlock
内联块级元素
|
| Modifier and Type | Method and Description |
|---|---|
static Display |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Display[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Display block
该元素生成一个块级元素盒,在正常的流中,该元素之前和之后产生换行。
public static final Display inlineBlock
它在正常的流中不产生换行,除非它的前一个元素是块级元素盒。
public static Display[] values()
for (Display c : Display.values()) System.out.println(c);
public static Display valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2026. All rights reserved.