摘要:
选中状态的样式,hover后变成另外一个样式, 解决方法是:在css中hover后面在增加一个hover: 选中时的样式,添加类名: .active { background-color: #217aff; } 鼠标hover时的样式: .remote-style:hover { backgroun 阅读全文
摘要:
在HTML中: <p *ngIf="descriCenter.length >= 218"> {{descriCenter | slice :0:218}}... </p> <p *ngIf="descriCenter.length < 218"> {{descriCenter}} </p> 在ts 阅读全文