Chrome默认重点大纲 [英] Chrome default focus outline

查看:166
本文介绍了Chrome默认重点大纲的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图删除默认焦点froom chrome,并且它的大纲:无;在同一时间我想添加一个盒子阴影,但它不适用于选择。

I'm trying to remove default focus froom chrome and it works with outline:none; in the same time I want to add an box-shadow but it not working for select .

*:focus { outline:none; }

input[type="text"]:focus,input[type="checkbox"]:focus,input[type="password"]:focus,
select:focus, textarea:focus,option:focus{
box-shadow:0 0 2px 0 #0066FF;
-webkit-box-shadow:0 0 9px 0 #86AECC;
z-index:1;
}

小提琴: http://jsfiddle.net/DCjYA/309/

fiddle: http://jsfiddle.net/DCjYA/309/

推荐答案

试试这个:

Try this:

* { 
    outline-color: lime;
}

这篇关于Chrome默认重点大纲的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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