CSS belyn-self Eiendom
Voorbeeld
Sentreer die belynings vir een van die items binne 'n buigsame element:
#myBlueDiv
{
align-self: center;
}
Definisie en gebruik
Die align-self
eiendom spesifiseer die belyning vir die geselekteerde item binne die buigsame houer.
Let wel: Die align-self
eienskap ignoreer die buigsame houer se
align-items eiendom.
Standaard waarde: | outo |
---|---|
Geërf: | geen |
Animateerbaar: | geen. Lees oor animeerbaar |
Weergawe: | CSS3 |
JavaScript-sintaksis: | voorwerp .style.alignSelf="center" |
Blaaierondersteuning
Die nommers in die tabel spesifiseer die eerste blaaierweergawe wat die eiendom ten volle ondersteun.
Nommers gevolg deur -webkit- spesifiseer die eerste weergawe wat met 'n voorvoegsel gewerk het.
Property | |||||
---|---|---|---|---|---|
align-self | 21.0 | 11.0 | 20.0 | 9.0 7.0 -webkit- |
12.1 |
CSS-sintaksis
align-self: auto|stretch|center|flex-start|flex-end|baseline|initial|inherit;
Eiendomswaardes
Value | Description | Play it |
---|---|---|
auto | Default. The element inherits its parent container's align-items property, or "stretch" if it has no parent container | |
stretch | The element is positioned to fit the container | |
center | The element is positioned at the center of the container | |
flex-start | The element is positioned at the beginning of the container | |
flex-end | The element is positioned at the end of the container | |
baseline | The element is positioned at the baseline of the container | |
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-verwysing: belyn-inhoud eiendom
CSS-verwysing: align-items eiendom
HTML DOM verwysing: alignSelf eiendom