P粉5920854232023-08-02 00:49:28
删除显示的“请填写此字段”提示。
对于红色边框,你可以考虑这样做:
.input-group:hover, .input-group:focus-within { border-block-color: red; box-shadow: 0px 0px 3px 2px red; box-sizing: border-box; display: inline-block; }
<div class="input-group" id="email-input"> <input type="text" id="email" name="email" autocomplete="off" placeholder="Email"> </div>