Код: Выделить всё
.the-parent,
.the-parent > div,
.the-parent > div > div,
.the-parent > div > div > div{
display: flex
}
< /code>
Это единственный способ сделать это? < /p>
Я думал просто: < /p>
.the-parent div{
display: flex
}
Код: Выделить всё
.the-parent >(3) div{
display: flex
}
Подробнее здесь: https://stackoverflow.com/questions/794 ... en-not-all
Мобильная версия