css 子元素繼承父元素的高度

css 子元素繼承父元素的高度 現狀 期望 實現1 實現2 父元素中有a、b兩個子元素,a高度爲300px,撐開父元素也是300px,此時想讓b也是300px。 現狀 期望 實現1 father: position: relative b: position: absolute height: 100% 實現2 father: display: flex
相關文章
相關標籤/搜索