简体   繁体   English

如何更改下划线的拼写检查颜色

[英]How to change the spellcheck color of the underline

If put some random text in the input text, such as "qwertyui"如果在输入文本中放入一些随机文本,例如“qwertyui”

 <input id="test" type="text">

It appears a red curly underline, is it possible to change its color?它出现一个红色的卷曲下划线,是否可以改变它的颜色?

There is no way to change spellcheck color in modern browsers.在现代浏览器中无法更改拼写检查颜色。 But I've found a CSS selector which doesn't support by any browser.但是我发现了一个不受任何浏览器支持的 CSS 选择器。 It is ::spelling-error .它是::spelling-error The usage like:用法如:

::spelling-error {
  color: red;
}

For more information check Mozilla Web Documents有关更多信息,请查看Mozilla Web 文档

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM