font-size
Baseline Widely available
This feature is well established and works across many devices and browser versions. It’s been available across browsers since July 2015.
Das font-size
Attribut bezieht sich auf die Größe der Schriftart von baseline zu baseline, wenn mehrere Textzeilen in einem mehrzeiligen Layoutumfeld gesetzt werden.
Hinweis:
Als Präsentationsattribut hat font-size
auch ein entsprechendes CSS-Property: font-size
. Wenn beide festgelegt sind, hat die CSS-Eigenschaft Vorrang.
Dieses Attribut kann mit den folgenden SVG-Elementen verwendet werden:
Beispiel
<svg viewBox="0 0 200 30" xmlns="http://www.w3.org/2000/svg">
<text y="20" font-size="smaller">smaller</text>
<text x="100" y="20" font-size="2em">2em</text>
</svg>
Hinweise zur Verwendung
Wert |
<absolute-size> | <relative-size> |
<length-percentage>
|
---|---|
Standardwert | medium |
Animierbar | Ja |
Für eine Beschreibung der Werte lesen Sie bitte die CSS font-size
Eigenschaft.
Spezifikationen
Specification |
---|
CSS Fonts Module Level 4 # font-size-prop |
Browser-Kompatibilität
Report problems with this compatibility data on GitHubdesktop | mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
font-size |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
Siehe auch
- CSS
font-size
Eigenschaft