使用 jQuery 验证插件时更改突出显示文本框的颜色?
我刚刚尝试了 jQuery 验证插件,当我单击文本框时,它会以棕色/米色突出显示,如何将其更改为另一种颜色?
提前致谢。
I just tried out the jQuery Validation Plugin and when I click in a textbox it gets highlighted with a brownish/beige color, how can I change this to another color?
Thanks in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我不相信插件应用了大纲。焦点输入上的浅黄色是 Chrome 默认样式表的一部分。如果要删除轮廓,请使用以下 CSS 规则:
其语法与
border
属性的语法相同。但是,您仍然应该尝试为焦点元素提供某种突出显示,以便于访问。I don't believe that the outline is applied by the plugin. The light yellow color on focused inputs is part of Chrome's default stylesheet. If you want to remove the outline, use this CSS rule:
The syntax for this is the same as that for the
border
property. However, you should still try to give focused elements some sort of highlighting, for accessibility.