复制Chrome默认输入的大纲样式 [英] Copy Chrome default input's outline style

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

问题描述

如何设置默认的Chrome输入的大纲样式(焦点,橙色),因此在每个浏览器中看起来都一样? Chrome风格似乎是 textarea:focus {outline:rgb(229,151,0)auto 5px; (对于没有 auto outline-style / code>其他浏览器)。

How can I set the default Chrome input's outline style (on focus, the orange one), so it looks the same in every browser? Chrome style seems to be textarea:focus{outline: rgb(229, 151, 0) auto 5px; outline-offset: -2px}, however it doesn't work (there is no auto for outline-style for other browsers).

推荐答案

不知道我的解决方案是否适合你,到目前为止,我不知道任何其他方式...我这样做这样:

Don't know if my solution is good enough for you, but so far, i don't know any other way... I do it like this:

textarea:focus
{
    outline:none; /*or outline-color:#FFFFFF; if the first doesn't work*/
    border:1px solid #48A521;
    -webkit-box-shadow: 0px 0px 4px 0px #48A521;
    box-shadow: 0px 0px 4px 0px #48A521;
}

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

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