[英]How to change the underline color of md-input-container in angular4?
[英]angular material - change input underline color after input is submitted
對於每個墊子輸入:在焦點增益上,將 boolean hadFocus 設置為 true。 在墊子輸入元素上使用 [class.had-focus]="hadFocus" 指令,並將 CSS 中的“紫色” styles 應用於.had-focus ZA2F2ED4F8EBC2CBB4C21A29DC40AB61D。
您可能認為可以使用表單控件的原始字段來做到這一點。 但如果我沒記錯的話,原始場會在某個時候自動重置。 不過你可以試一試。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.