选择时从HTML文本输入中删除蓝色光晕 [英] Removing the blue glow from an HTML text input when selected

查看:113
本文介绍了选择时从HTML文本输入中删除蓝色光晕的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使用纯CSS删除选定文本输入框周围的蓝色光芒?

How can I remove the blue glow that surrounds a selected text input box using pure CSS?

推荐答案

input:focus {
    outline:none;
}

EDIT(2015):对于广大的受众,回想一下,大纲对于通过键盘导航或需要更明显的视觉反馈的用户而言通常是关键的辅助功能。如果删除大纲,请务必定义替代焦点状态,为用户提供适当的视觉反馈。

EDIT (2015): If you are designing for a wide audience, recall that the outline is often a critical accessibility feature for users who navigate via keyboards or require more apparent visual feedback. If you remove the outline, make sure to define an alternative focus state that provides appropriate visual feedback to your users.

这篇关于选择时从HTML文本输入中删除蓝色光晕的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆