摘要: 选中状态的样式,hover后变成另外一个样式, 解决方法是:在css中hover后面在增加一个hover: 选中时的样式,添加类名: .active { background-color: #217aff; } 鼠标hover时的样式: .remote-style:hover { backgroun 阅读全文
posted @ 2020-04-26 17:33 咱也不敢问 阅读(757) 评论(0) 推荐(0) 编辑
摘要: 在HTML中: <p *ngIf="descriCenter.length >= 218"> {{descriCenter | slice :0:218}}... </p> <p *ngIf="descriCenter.length < 218"> {{descriCenter}} </p> 在ts 阅读全文
posted @ 2020-04-26 11:12 咱也不敢问 阅读(309) 评论(0) 推荐(0) 编辑