display: flex继承
时间: 2023-09-16 17:11:30 浏览: 125
display: flex属性可以改变继承的选择规则。它是新版本的display属性,与display: box和display: inline-box相比较。当父元素设置了display: flex属性后,它的子元素就可以使用box-flex属性,以父元素的宽度进行一定比例的分占空间。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [浅谈display:flex对div宽度和高度继承的影响](https://blog.csdn.net/m0_52518047/article/details/124256841)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
- *2* *3* [display:flex属性](https://blog.csdn.net/weixin_34509196/article/details/117981053)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文