边缘和 HTML 表单验证:如何删除无效状态元素的输入周围的 "red square"?

Edge and HTML Form Validation: how to remove "red square" around the input for elements in invalid status?

在图片上(这是Edge浏览器)名为BsMultiSelect的字段具有正常的bootstrap invalid外观(这是在css中)。我对 "Input sample" 的期望相同,但 Edge 浏览器为处于 invalid 状态的元素添加了自己的 "red border"(它不在 css!)。如何禁用此浏览器行为?

Chrome 没有这样的功能,没有为 :invalid 元素添加任何 own styles

你试过 outline: 0 在 css

您可以像这样删除此 outline :

input {
    outline: unset;
}