FontSize 枚举

定义

指定由 HTML 4.0 定义的字体大小。Specifies the font sizes defined by HTML 4.0.

public enum class FontSize
public enum FontSize
type FontSize = 
Public Enum FontSize
继承
FontSize

字段

AsUnit 1

字体大小由磅值指定。The font size is specified by a point value.

Large 8

字体大小比基准字体大小大两号。The font size is two sizes larger than the base font size.

Larger 3

字体大小比父元素大一号。The font size is one size larger than the parent element.

Medium 7

字体大小比默认字体大小大一号。The font size is one size larger than the default font size.

NotSet 0

不设置字体大小。The font size is not set.

Small 6

基准字体大小由浏览器确定。The base font size determined by the browser.

Smaller 2

字体大小比父元素小一号。The font size is one size smaller than the parent element.

XLarge 9

字体大小比基准字体大小大三号。The font size is three sizes larger than the base font size.

XSmall 5

字体大小比基准字体大小小一号。The font size is one size smaller than the base font size.

XXLarge 10

字体大小比基准字体大小大四号。The font size is four sizes larger than the base font size.

XXSmall 4

字体大小比基准字体大小小两号。The font size is two sizes smaller than the base font size.

注解

FontSize枚举表示 HTML 4.0 定义的字体大小。The FontSize enumeration represents the font sizes defined by HTML 4.0. 字号可以是绝对或相对大小。The font size can be an absolute or relative size.

绝对字号表示由浏览器确定的预定义字体大小。An absolute font size represents a predefined font size determined by the browser. 绝对字号的可能值为 XXSmall、XSmall、Small、Medium、大型、加大和 XXLarge。The possible values for an absolute font size are XXSmall, XSmall, Small, Medium, Large, XLarge, and XXLarge.

相对字体大小表示一个字号或小于父元素的字体大小的字体大小。A relative font size represents a font size one size larger or smaller than a parent element's font size. 相对字体大小的可能值较小, 更大。The possible values for a relative font size are Smaller and Larger.

备注

某些浏览器无法识别更小且更大的字体大小。Some browsers do not recognize Smaller and Larger font sizes. 查看浏览器的兼容性。Check with your browser for compatibility.

适用于

另请参阅