gpt4 book ai didi

javascript - 内容溢出卡片 Angular Material

转载 作者:行者123 更新时间:2023-11-28 17:52:46 26 4
gpt4 key购买 nike

我里面的所有内容都从卡中溢出了。

<md-content ng-controller="TestCtrl" layout-padding>
<div layout="row" style="height: calc(100vh - 64px);">
<!-- left sidenav : search and search results -->
<div layout="column" flex-gt-sm="30" style="background-color: #fafafa;">
<md-content layout="column" flex class="search-results" layout-margin style="overflow: auto;">
<span class="md-subhead muted">Results: </span>
<md-card ng-repeat="place in places" class="result-card" layout="column">
<md-card-content flex>
<h2 class="title">{{place.first_name}} {{place.last_name}}</h2>
<h4 class="sub-cat">Prospect Status: <span class="state">{{place.prospect_status}}</span></h4>
<h4 class="sub-cat">Spiritual Condition: <span class="state">{{place.spiritual_condition}}</span></h4>
<h4 class="sub-cat">Street: <span class="state">{{place.address[0].street_no}}</span></h4>
<h4 class="sub-cat">Prospect Status: <span class="state">{{place.prospect_status}}</span></h4>
<h4 class="sub-cat">Spiritual Condition: <span class="state">{{place.spiritual_condition}}</span></h4>
<h4 class="sub-cat">Street: <span class="state">{{place.address[0].street_no}}</span></h4>
</md-card-content>
</md-card>
</md-content>
</div>
</div>

这是一个 link给笨蛋。

最佳答案

只需从 md-content 组件中删除 layout="column" 即可:

<md-content flex class="search-results" layout-margin style="overflow: auto;">

关于javascript - 内容溢出卡片 Angular Material,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45101581/

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