jquery - 单击蓝色时突出显示文本框

标签 jquery html css

好的,所以当您单击文 native 器人登录时,某些网站(例如 twitter 等)会突出显示为蓝色。我该怎么做?

最佳答案

好吧,如果是 twitter,你可以看看 bootstrap.css 代码。我认为以下 css 可以解决问题(从 bootstrap.css 中取出):

input:focus, textarea:focus {
  border-color: rgba(82, 168, 236, 0.8);
  -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(82, 168, 236, 0.6);
  -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(82, 168, 236, 0.6);
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(82, 168, 236, 0.6);
  outline: 0;
  outline: thin dotted \9;
  /* IE6-9 */

}

引用:

关于jquery - 单击蓝色时突出显示文本框,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10660810/

相关文章:

javascript - 完整日历在 Firefox 中不工作

html - XPath 中的逻辑与

php mysql html 分页不起作用

html - 移动设备上的视口(viewport)错误和不需要的缩放

javascript - 在另一个 div 的事件状态下更改图像

javascript - 如何在 Jquery Easy UI 中使用 javascript 函数调用 php 函数

javascript - 水平和其他定向滚动

html - 控制移动浏览器滚动的速度(粘性)

html - 在 iOS safari 中输入焦点后模态(固定元素)不可滚动

javascript - 在不删除填充的情况下设置 div 样式