HTML
慢慢非
顶顶顶顶顶点顶顶顶顶顶顶顶顶顶顶额达到顶顶顶顶顶点顶顶顶顶顶顶顶顶顶顶鹅鹅鹅鹅鹅鹅鹅鹅鹅鹅鹅鹅
展开
-
html 表格及div文本超长显示...
<table class="table_main1"> <tr *ngFor="let col of dataList1 "> <td title="{{col.InfoTitle}}" (click)="onTile(col)" class="table_tl"> <a href="javascript:void(0);">...原创 2021-04-25 16:45:26 · 3452 阅读 · 0 评论 -
angular1 ngClass-学习
<!-- 样式类:kb-row--> <!-- 条件:ri==0&ry==3--><span [ngClass]="{'kb-row': ri==0&&ry==3}"></span> <!-- ts定义icon样式( @Input() toastPosition: string = 'c-toast-top-center';)或css样式表定义样式--><span [ngClass]="i...原创 2021-04-25 16:26:32 · 160 阅读 · 0 评论 -
angular4 鼠标经过离开的方法事件
以图片为例,其他同理前端代码: <img (mouseover)="over3(i)" (mouseout)="out3(i)" (click)="okJian(i)" src="assets/questiondesign/77.png"/>ts代码:import { Component, OnInit, ElementRef, Input } from '@angular/core';constructor( private el: ElementRef)...原创 2021-04-25 15:58:30 · 957 阅读 · 0 评论 -
angular4鼠标悬停-学习
(mouseover)--鼠标 悬浮事件 (mouseout)--鼠标 离开事件<div (click)="onclickLJ(item,tjQuestionData,i)" (mouseover)="over1(i)" (mouseout)="out1(i)" class="zuo_img1"></div>angular4 通过class获取DOMimport { ElementRef } from '@angular/core';construc...原创 2020-12-10 15:07:17 · 1492 阅读 · 0 评论 -
angualr4 innerHTML 转义html标签
<div [innerHTML]="assembleHTML(dvDetailsHtml)" > </div> assembleHTML(strHTML: any) { return this.sanitizer.bypassSecurityTrustHtml(strHTML); }import { DomSanitizer }...原创 2020-02-18 14:16:47 · 316 阅读 · 1 评论 -
整理 type=checkbox
//默认CheckBox为选中状态<input type="checkbox" name="ch_dqid" onclick="asd(" + id + ");" value="" + id + "" checked="checked\" >//判断checkbox 是否选中 //选中,返回true,没选中,返回false var原创 2018-07-04 10:16:55 · 6330 阅读 · 0 评论