0
用下面的HTML::主動選擇僅發生在點擊
<input type="text">
而CSS:
input[type="text"] {outline: none; border: thin solid red}
input[type="text"]:active {border: thin solid yellow}
我希望文本字段將有一個黃色邊框時,它是積極的(當用戶正在鍵入)。但是,新樣式僅適用於單擊元素時的情況。我怎樣才能達到我想要的效果?