Latest web development tutorials

Obiekt HTML DOM Style alignSelf

Styl Object Reference styl Przedmioty

Przykłady

Wyrównaj elastyczne elementy w ramach projektu:

document.getElementById("myDIV").style.alignSelf="center";

Spróbuj »

Definicja i Wykorzystanie

alignSelf ramach elastycznego pojemnika atrybutu określa wyrównanie wybranego projektu.

Uwaga: w obiekcie alignSelfwielokrotnego alignItems przypisują elastycznego pojemnika.


Pomoc Browser

Internet ExplorerFirefoxOperaGoogle ChromeSafari

Firefox, Opera i Chrome wsparcie nieruchomości alignSelf.

gramatyka

Właściwości Powrót alignSelf:

object .style.alignSelf

Ustawianie właściwości alignSelf:

object .style.alignSelf="auto|stretch|center|flex-start|flex-end|baseline|initial|inherit"

Wartość nieruchomości

描述
auto 默认值。元素继承了它的父容器的 align-items 属性。如果没有父容器则为 "stretch"。
stretch 元素被拉伸以适应容器。
center 元素位于容器的中心。
flex-start 元素位于容器的开头。
flex-end 元素位于容器的结尾。
baseline 元素位于容器的基线上。
initial 设置该属性为它的默认值。请参阅 initial
inherit 从父元素继承该属性。请参阅 inherit

dane techniczne

Domyślnie: automatyczny
Zwraca: Ciąg, który reprezentuje atrybuty align-self elementu.
wersja CSS CSS3


Powiązane artykuły

CSS: align = left właściwości Self

HTML DOM STYL referencyjny: nieruchomość alignContent

HTML DOM STYL referencyjny: nieruchomość alignItems


Styl Object Reference styl Przedmioty