【发布时间】:2020-03-12 17:58:41
【问题描述】:
我需要一个以角度浮动到文本区域右上角的按钮。
这是我有的,但它不起作用
<textarea matInput matInput rows="15" cols="40" >
<div (click)="formatXml()" class="xmlIcon">
<span matTooltip="'Format Xml'" class="fas fa-search-plus ml-1" ></span>
</div>
</textarea>
.xmlIcon{
padding-right: 20px;
background-position: top right;
background-repeat: no-repeat;
}
【问题讨论】:
标签: angular typescript