gpt4 book ai didi

html - 如何在 IE11 上控制无效模式的文本框边框?

转载 作者:太空宇宙 更新时间:2023-11-04 13:29:30 25 4
gpt4 key购买 nike

这是它在 IE 中的样子:IE11

我尝试使用下面的这个方法,但它只部分起作用。意思是,如果我要键入无效的图案,边框将固定为 2px,当我单击文本框外的任何地方时,它会恢复为那条粗线。

#openSeason [type=text]:invalid 
{
border: 2px red solid;
}

但是,它确实适用于 Firefox 和 Chrome。这是它在 Firefox 中的样子,也是我希望它在 IE11 中的样子:

enter image description here

最佳答案

使用outline:none;

#openSeason [type=text]:invalid 
{
border: 2px red solid;
outline:none;
}

关于html - 如何在 IE11 上控制无效模式的文本框边框?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23453896/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com