AngularJS材质标签高度问题 [英] AngularJS Material Tab height issue
本文介绍了AngularJS材质标签高度问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用AngularJS Material解决问题,我想知道是否有人知道为什么下面的代码:
I'm having some troube figuring things out with AngularJS Material, I was wondering if anyone knew why the folling piece of code:
<md-tabs layout-fill >
<md-tab id="tab1">
<md-tab-label>Item One</md-tab-label>
<md-tab-body>
<md-list>
<md-subheader class="md-no-sticky">3 line item</md-subheader>
<md-list-item class="md-3-line" ng-repeat="item in [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,50]">
<div class="md-list-item-text">
<h3>sdfs</h3>
<h4>sdfsd</h4>
<p>sdfsdf</p>
</div>
</md-list-item>
</md-list>
</md-tab-body>
</md-tab>
</md-tabs>
在Firefox上生成此.
produces this on firefox.
和此.
很抱歉没有直接发布图片,我的信誉不够.
sorry about not posting images directly I don't have enough reputation.
推荐答案
我也遇到了类似的问题.虽然md-dynamic-height
解决了...
I also Had a similar issue. Though md-dynamic-height
solved it...
您可以尝试使用:
<md-tabs md-dynamic-height>
<md-tab>
<md-tab-label>Tab label</md-tab-label>
<md-tab-body>
<md-content>The tab content</md-content>
</md-tab-body>
</md-tab>
</md-tabs>
这篇关于AngularJS材质标签高度问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文