CSS
:not(.positionAbsolute).bottomCenter {
margin-top: auto;
margin-left: auto;
margin-right: auto;
}
.positionAbsolute.bottomCenter {
bottom: 0px;
left: 50%;
transform: translate(-50%, 0);
}
CSS
:not(.positionAbsolute).bottomLeft {
margin-top: auto;
margin-right: auto;
}
.positionAbsolute.bottomLeft {
bottom: 0px;
left: 0px;
}
CSS
:not(.positionAbsolute).bottomRight {
margin-top: auto;
margin-left: auto;
}
.positionAbsolute.bottomRight {
bottom: 0px;
right: 0px;
}
CSS
:not(.positionAbsolute).centerCenter {
margin-top: auto;
margin-bottom: auto;
margin-left: auto;
margin-right: auto;
}
.positionAbsolute.centerCenter {
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
CSS
:not(.positionAbsolute).centerLeft {
margin-top: auto;
margin-bottom: auto;
margin-right: auto;
}
.positionAbsolute.centerLeft {
top: 50%;
transform: translate(0, -50%);
left: 0px;
}
CSS
:not(.positionAbsolute).centerRight {
margin-top: auto;
margin-bottom: auto;
margin-left: auto;
}
.positionAbsolute.centerRight {
top: 50%;
transform: translate(0, -50%);
right: 0px;
}
CSS
:not(.positionAbsolute).topCenter {
margin-bottom: auto;
margin-left: auto;
margin-right: auto;
}
.positionAbsolute.topCenter {
top: 0px;
left: 50%;
transform: translate(-50%, 0);
}
CSS
:not(.positionAbsolute).topLeft {
margin-bottom: auto;
margin-right: auto;
}
.positionAbsolute.topLeft {
top: 0px;
left: 0px;
}
CSS
:not(.positionAbsolute).topRight {
margin-bottom: auto;
margin-left: auto;
}
.positionAbsolute.topRight {
top: 0px;
right: 0px;
}
Generated using TypeDoc
Используется для задания позиции элемента IElement.alignSelf.
Расплагает элемент в одну из девяти позиций:
Если в описании елемента это свойство задано , то к html элементу добавляется соответствующий класс, например
topCenter
.css
стили отличаются для двух случаев:positionAbsolute = true
,positionAbsolute = false | undefuned
.см. IElement.positionAbsolute