尝试这个CSS,它对我有效:textarea:focus, input:focus{ border: none; } - Yosep Tito11个回答 3173 这个边框用于显示元素是否聚焦(即您可以在输入框中键入或按Enter键来按按钮)。 您可以通过 outline 属性将其移除: textarea:focus, input:focus{ outline: none; } 为了提高可用性,您可能希望添加其他方式...
.field__input:focus, .select__select:focus, .customer .field input:focus, .customer select:focus, .localization-form__select:focus.localization-form__select:after ,.field__input:focus-visible, .select__select:focus-visible, .customer .field input:focus-visible, .customer select:focus-...
border-color: #999999; font-size: 30px; background-color: #ffffff; } .input-text:focus { border-color: #f76160; } .input-button { font-size: 30px; margin-top: 10px; border-radius: 5px; color: #ffffff; background-color: #00bfff; ...
When the user clicks into the text box now it will not have the focus outline. As I mentioned above, you normally wouldn’t want to do this but there may be specific times when it is needed, such as showing a search field which has an image border....
1 How to change border color on focus using styled-components 0 how to give focusing css effect in input tag 8 Apply :focus-visible when focusing element programatically 2 Show no border on focus of an input field 0 Focusable Input 1 How to show a div on input focus with CSS?
RemoveGuides RemoveHorizontalSpacing RemoveLink RemoveMapping RemoveNamespace RemoveNoColor RemoveTest RemoveTestGroup RemoveVerticalSpacing 重命名 RenameClass RenameEvent RenameField RenameLocalServer RenameMethod RenameProperty RenameRemoteServer RenkoChart ReorderList ReorderParameters ReorderTableColumn 修复 Reparent...
To add a colored outline when the field is selected, you can use the focus state. In this example, we’re changing the outline to not appear by default, and display as a green (#2cc088) 2px border. Code below: <style> input[type=text]{ ...
Key, mouse, and focus listeners are registered through the three Component methods of addKeyListener(), addMouseListener(), and addFocusListener(), respectively. Action public boolean action (Event e, Object o) The action() method for a TextField is called when the input focus is in the ...
您希望修改outline属性: input:focus { border-color: red; outline: red;} <h1>Demo of the :focus selector</h1><form> First name: <input type="text" name="firstname" /><br /> Last name: <input type="text" name="lastname" /></form> 这里有一篇关于两者区别的好文章。
We read every piece of feedback, and take your input very seriously. Include my email address so I can be contacted Cancel Submit feedback Saved searches Use saved searches to filter your results more quickly Cancel Create saved search Sign in Sign up Reseting focus {...