作者:手机用户2502902033 | 来源:互联网 | 2022-12-02 10:56
1> Vikas Jadhav..:
您可以使用flex end属性来代替位置 align-self: flex-end;
参见下面的代码片段:
.root {
display: inline-flex;
background-color: red;
}
.content {
display: flex;
align-items: center;
justify-content: center;
height: 80px;
width: 100%;
background-color: red;
}
.icon {
align-self: flex-end;
background-color: yellow;
}