0
我使用ngFor显示的笔记列表,它工作正常时,有空间的几个字母,但如果有人加入一长串withought任何空间在其中,卡的文本超出其边界,并创建水平滚动条,直到卡片文本结束。如何让文字内容在到达卡片边框时自动中断?
我* ngFor卡代码看起来像这样
<div class="col-md-3 eachCard" *ngFor="let note of allNotes">
<md-card>
<md-card-content>{{ note.noteText }}</md-card-content>
<md-card-actions>
<md-icon class="actionIcons" (click)="edit(note)">create</md-icon>
<md-icon class="actionIcons" (click)="delete(note)">clear</md-icon>
</md-card-actions>
</md-card>
</div>
问题解决了。非常感谢,不知道这样的CSS属性存在! –