md-tab不接受height = 100%来给出md-tab-group

时间:2017-05-16 14:29:33

标签: angular angular-material

我在将标签内容调整为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-groupheight扩展为height总计。但height的属性md-tab不适合md-tab-group的100%。

由于这个内容,即使我将高度设置为100%,它也不适合height的100%

如果我将height的{​​{1}}属性设置为例如500px,则它可以正常工作

自从我将<div>添加到index.html

后,我遇到了这个问题

版本:Beta.5 Angular 4 enter image description here

黄色块的高度应等于绿色。另外,如果你看到,有一个滚动条,因为黄色内容的大小与黄色区域的大小重叠

会出错的是什么?

0 个答案:

没有答案
相关问题