📜  调整大小() { this.elementRef.nativeElement.style.height = '4px'; this.elementRef.nativeElement.style.height = this.elementRef.nativeElement.scrollHeight + 'px'; } - 任何代码示例

📅  最后修改于: 2022-03-11 14:58:11.952000             🧑  作者: Mango

代码示例1


autoGrowTextZone(e) {
  e.target.style.height = "0px";
  e.target.style.height = (e.target.scrollHeight + 25)+"px";
}