gpt4 book ai didi

angular-material - 角度 Material md-tabs : setting md-dynamic-height causing the tabs to scroll instead of the content

转载 作者:行者123 更新时间:2023-12-01 12:29:18 26 4
gpt4 key购买 nike

我正在尝试使用角度 Material 并使用 md-tabs,但是如果内容超过屏幕长度,则在应用 md-dynamic-height 时,由于某些原因,选项卡加上内容。我只是滚动的内容无法弄清楚我做错了什么。这是我正在做的一个例子。

<md-tabs md-dynamic-height md-border-bottom md-center-tabs md-stretch-tabs md-swipe-content>
<!--First Tab-->
<md-tab md-dynamic-height label="First INFO">
<div class="">
<div class="bold">

</div>
<hr />
<img src="images/map-pin.png" width="45" height="45" class="left up10" />
<button class="btn-icon right up10"/>
<img src="images/compose.svg" width="25" height="25" />
</button>
<span></span>
<div >

</div>
<div style="clear: both"></div>
</div>
</md-tab>
<!--Second Tab-->
<md-tab md-dynamic-height label="Second INFO">
<div class="">
<div class="bold">

</div>
<hr />
<img src="images/map-pin.png" width="45" height="45" class="left up10" />
<button class="btn-icon right up10"/>
<img src="images/compose.svg" width="25" height="25" />
</button>
<span></span>
<div >

</div>
<div style="clear: both"></div>
</div>
</md-tab>
<!--Third Tab-->
<md-tab md-dynamic-height label="Third INFO">
<div class="">
<div class="bold">

</div>
<hr />
<img src="images/map-pin.png" width="45" height="45" class="left up10" />
<button class="btn-icon right up10"/>
<img src="images/compose.svg" width="25" height="25" />
</button>
<span></span>
<div >

</div>
<div style="clear: both"></div>
</div>
</md-tab>

最佳答案

示例布局:

<md-tabs md-dynamic-height md-border-bottom md-center-tabs md-stretch-tabs md-swipe-content>
<md-tab label="1">
<md-content style="height:100%">
tab content here
</md-content>
</md-tab>
<md-tab label="2">
<md-content style="height:100%">
tab content here
</md-content>
</md-tab>
<md-tab label="3">
<md-content style="height:100%">
tab content here
</md-content>
</md-tab>
</md-tabs>

关于angular-material - 角度 Material md-tabs : setting md-dynamic-height causing the tabs to scroll instead of the content,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35879266/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com