<display-internal>
Einige Layoutmodelle, wie table
und ruby
, haben eine komplexe interne Struktur mit verschiedenen Rollen, die ihre Kinder und Nachfahren erfüllen können. Diese Seite definiert diese "internen" Display-Werte, die nur innerhalb dieses speziellen Layout-Modus Bedeutung haben.
Syntax
Gültige <display-internal>
Werte:
table-row-group
-
Diese Elemente verhalten sich wie HTML-Elemente vom Typ
<tbody>
. table-header-group
-
Diese Elemente verhalten sich wie HTML-Elemente vom Typ
<thead>
. -
Diese Elemente verhalten sich wie HTML-Elemente vom Typ
<tfoot>
. table-row
-
Diese Elemente verhalten sich wie HTML-Elemente vom Typ
<tr>
. table-cell
-
Diese Elemente verhalten sich wie HTML-Elemente vom Typ
<td>
. table-column-group
-
Diese Elemente verhalten sich wie HTML-Elemente vom Typ
<colgroup>
. table-column
-
Diese Elemente verhalten sich wie HTML-Elemente vom Typ
<col>
. table-caption
-
Diese Elemente verhalten sich wie HTML-Elemente vom Typ
<caption>
. ruby-base
-
Diese Elemente verhalten sich wie HTML-Elemente vom Typ
<rb>
. ruby-text
-
Diese Elemente verhalten sich wie HTML-Elemente vom Typ
<rt>
. ruby-base-container
-
Diese Elemente werden als anonyme Boxen generiert.
ruby-text-container
-
Diese Elemente verhalten sich wie HTML-Elemente vom Typ
<rtc>
.
Formaler Syntax
<display-internal> =
table-row-group |
table-header-group |
table-footer-group |
table-row |
table-cell |
table-column-group |
table-column |
table-caption |
ruby-base |
ruby-text |
ruby-base-container |
ruby-text-container
Beispiele
>CSS-Tabellenbeispiel
Das folgende Beispiel demonstriert das Layout eines Formulars unter Verwendung des CSS-Tabellenlayouts.
HTML
<main>
<div>
<label for="name">Name</label>
<input type="text" id="name" name="name" />
</div>
<div>
<label for="age">Age</label>
<input type="text" id="age" name="age" />
</div>
</main>
CSS
main {
display: table;
}
div {
display: table-row;
}
label,
input {
display: table-cell;
margin: 5px;
}
Ergebnis
Spezifikationen
This feature does not appear to be defined in any specification.>Browser-Kompatibilität
>css.properties.display.table-row-group
Loading…
css.properties.display.table-header-group
Loading…
css.properties.display.table-footer-group
Loading…
css.properties.display.table-row
Loading…
css.properties.display.table-cell
Loading…
css.properties.display.table-column-group
Loading…
css.properties.display.table-column
Loading…
css.properties.display.table-caption
Loading…
css.properties.display.ruby-base
Loading…
css.properties.display.ruby-text
Loading…
css.properties.display.ruby-base-container
Loading…
css.properties.display.ruby-text-container
Loading…