我在将标签内容调整为md-tab-group高度的100%时遇到问题
例如:
<md-tab-group style="background-color: lightblue; height: 100%">// this works all bk is blue
<md-tab label="Info" style="background-color: indianred; height: 100%">//not work
<div style="background-color: yellow; height: 100%"></div>//with % not work, with px works
</md-tab>
</md-tab-group>
修改
我的问题是md-tab-group
将height
扩展为height
总计。但height
的属性md-tab
不适合md-tab-group
的100%。
由于这个内容,即使我将高度设置为100%,它也不适合height
的100%
如果我将height
的{{1}}属性设置为例如500px,则它可以正常工作
自从我将<div>
添加到index.html
黄色块的高度应等于绿色。另外,如果你看到,有一个滚动条,因为黄色内容的大小与黄色区域的大小重叠
会出错的是什么?