gpt4 book ai didi

angularjs - Angular Material md-card-title-text 的高度为 0

转载 作者:行者123 更新时间:2023-12-02 04:57:59 26 4
gpt4 key购买 nike

我试图找出为什么我的 md-card-title-text 无法正确渲染,我没有任何额外的 CSS,只有默认的 Angular-Material

我使用以下代码来展示它:

<md-card>
<md-card-header>
<md-card-avatar>
<img class="md-user-avatar" src="https://material.angularjs.org/HEAD/img/100-2.jpeg" />
</md-card-avatar>
<md-card-header-text>
<span class="md-title">User</span>
<span class="md-subhead">subhead</span>
</md-card-header-text>
</md-card-header>
<md-card-title>
<md-card-title-text>
<span class="md-headline">In-card mixed actions</span>
<span class="md-subhead">Reversed</span>
</md-card-title-text>
</md-card-title>
<md-card-content>
<p>
The titles of Washed Out's breakthrough song and the first single from Paracosm share the two most important words in Ernest Greene's musical language: feel it. It's a simple request, as well...
</p>
</md-card-content>
<md-card-actions layout="row" layout-align="start center">
<md-button>Action 1</md-button>
<md-button>Action 2</md-button>
<md-card-icon-actions>
<md-button class="md-icon-button" aria-label="toggle">
<md-icon md-svg-icon="md-toggle-arrow"></md-icon>
</md-button>
</md-card-icon-actions>
</md-card-actions>
</md-card>

这是显示问题的屏幕截图:

Screenshot

最佳答案

我遇到了同样的错误,并且无法在 Codepen 或其他任何地方重现它。经过一段时间的尝试,我发现我忘记添加 <!DOCTYPE html>到html文件,这解决了问题。

最诚挚的问候,
本杰明

关于angularjs - Angular Material md-card-title-text 的高度为 0,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35395678/

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