CSS ry-gaping Eiendom
Voorbeeld
Spesifiseer 'n gaping van 50 pixels tussen die roosterrye:
div
{
display: grid;
row-gap: 50px;
}
Meer "Probeer dit self" voorbeelde hieronder.
Definisie en gebruik
Die row-gap
eiendom spesifiseer die gaping tussen die roosterrye.
Die row-gap
eiendom was voorheen bekend as .
grid-row-gap
Standaard waarde: | normaal |
---|---|
Geërf: | geen |
Animateerbaar: | ja. Lees oor animeerbaar |
Weergawe: | CSS Box Belyning Module Vlak 3 |
JavaScript-sintaksis: | voorwerp .style.rowGap="50px" |
Blaaierondersteuning
Die nommers in die tabel spesifiseer die eerste blaaierweergawe wat die eiendom ten volle ondersteun.
Property | |||||
---|---|---|---|---|---|
row-gap (in Grid) | 66 | 16 | 61 | 12.1 | 53 |
row-gap (in Flexbox) | 84 | 84 | 63 | Not supported | 70 |
CSS-sintaksis
row-gap: length|normal|initial|inherit;
Eiendomswaardes
Value | Description | Play it |
---|---|---|
length | A specified length or % that will set the gap between the rows | |
normal | Default value. Specifies a normal gap between the rows | |
initial | Sets this property to its default value. Read about initial | |
inherit | Inherits this property from its parent element. Read about inherit |
Verwante bladsye
CSS handleiding: CSS Grid Uitleg
CSS verwysing: Die gaping eiendom
CSS verwysing: Die kolom-gaping eiendom