更改文本框高亮颜色 [英] Change textbox highlight color

查看:131
本文介绍了更改文本框高亮颜色的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在bootstrap中更改文本框的高亮颜色。可能吗?我使用引导到我的登录表单。我新的HTML和CSS,也引导。请给我一个关于如何去做的线索。

I want to change the highlight color of the textbox in bootstrap. Is it possible? Im using bootstrap to my login form. Im new to html and css and also to bootstrap. Please give me a clue on how to do it.

推荐答案

当我点击浏览器中的引导程序输入时,右键单击,选择Inspect Element ...对,我看到CSS的规则或样式。其中一个如下所示:

When I click on an bootstrap input in the browser, right click, choose "Inspect Element ...", on the right I see "Rules" or "Styles" for the CSS. One of them is as follows:

.form-control:focus {
  border-color: #66afe9;
  outline: 0;
  -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6);
  box-shadow: inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6);
}

颜色(十六进制#66afe9和rgba(102,175,233,.6 ))有什么使它蓝色,所以你需要改变这些值(虽然我不知道bootstrap足以知道你是否可能预处理CSS,并因此改变某些变量值而不是普通的CSS )。

The colors (both the hex #66afe9 and the rgba(102,175,233,.6)) in there are what make it blue, so you would need to change those values (though I don't know enough about bootstrap to know if you're probably preprocessing the CSS and would therefore change some variable value somewhere instead of plain CSS).

这篇关于更改文本框高亮颜色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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