作者:夜-依晨_920 | 来源:互联网 | 2023-05-19 01:02
I have a
我有一个
Ignore parent?
another child
The parent has
父母有
.parent {
display: flex;
}
For my first child, I want to simply float the item to the right.
对于我的第一个孩子,我想简单地将项目向右浮动。
And my other divs to follow the flex rule set by the parent.
我的其他divs遵循父母设置的flex规则。
Is this something possible?
这是可能吗?
If not, how do I do a float: right
under flex?
如果没有,我如何做浮动:在flex下面?
3 个解决方案