If put some random text in the input text, such as "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. It is ::spelling-error
. The usage like:
::spelling-error {
color: red;
}
For more information check Mozilla Web Documents
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.