04 2020 档案

摘要:在ts文件: ngOnInit() { //页面跳转顶部 this.router.events.subscribe((evt) => { window.scrollTo(0, 0); }); } jq方法: // 以下三种方式均可实现返回页面顶部 $(window).scrollTop(0); $( 阅读全文
posted @ 2020-04-28 17:52 咱也不敢问 阅读(387) 评论(0) 推荐(0) 编辑
摘要:[{ "$id": "1", "$type": "SourceTree.Api.Host.Identity.Model.IdentityAccount, SourceTree.Api.Host.Identity", "Authenticate": true, "HostInstance": { "$ 阅读全文
posted @ 2020-04-27 17:13 咱也不敢问 阅读(336) 评论(0) 推荐(0) 编辑
摘要:选中状态的样式,hover后变成另外一个样式, 解决方法是:在css中hover后面在增加一个hover: 选中时的样式,添加类名: .active { background-color: #217aff; } 鼠标hover时的样式: .remote-style:hover { backgroun 阅读全文
posted @ 2020-04-26 17:33 咱也不敢问 阅读(779) 评论(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 咱也不敢问 阅读(312) 评论(0) 推荐(0) 编辑
摘要:html部分: <div class="pctw"> <div class="pcWrap"> <div class="pctw-prize"> <div class="prize-center"> <ul class="prize-center-ul"> <li class="pctw-li1 p 阅读全文
posted @ 2020-04-19 19:32 咱也不敢问 编辑

点击右上角即可分享
微信分享提示