如何在Twitter Bootstrap中更改输入和textarea元素的边框/大纲颜色? [英] How can I change the border/outline color for input and textarea elements in Twitter Bootstrap?
本文介绍了如何在Twitter Bootstrap中更改输入和textarea元素的边框/大纲颜色?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想更改引导文本框的颜色从默认蓝色。尝试:
I want to change the color of bootstrap textbox from the default blue. tried:
.input-small,
.input-medium {
border-color: #E56717;
}
没有太多的帮助。还尝试了:focus
Not of much help. Also tried ":focus"
推荐答案
我认为你在谈论蓝色光芒的焦点?尝试此操作:
I presume you're speaking about the blue glow on focus? Try this:
textarea:focus, input:focus, input[type]:focus, .uneditable-input:focus {
border-color: rgba(229, 103, 23, 0.8);
box-shadow: 0 1px 1px rgba(229, 103, 23, 0.075) inset, 0 0 8px rgba(229, 103, 23, 0.6);
outline: 0 none;
}
这篇关于如何在Twitter Bootstrap中更改输入和textarea元素的边框/大纲颜色?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文