twitter-bootstrap 十六进制颜色计算器:更改 twitter bootstrap 按钮的颜色
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/13398788/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
hex color calculator: change color for twitter bootstrap buttons
提问by Haradzieniec
OK, I'm trying to rewrite the color for Twitter Bootstrap buttons (for example, for .btn-primary).
好的,我正在尝试重写 Twitter Bootstrap 按钮的颜色(例如,for .btn-primary)。
As far as I see, there are several colors that are defined for .btn-primary so they have all fixes for all browsers.
据我所知,为 .btn-primary 定义了几种颜色,因此它们具有适用于所有浏览器的所有修复程序。
The easiest way I see it to write all the colors for .btn-primary and "move" them to the same difference as new basic color is differ from the basic color of btn-primary, that is actually #006dccas I see from bootstrap.css.
我认为为 .btn-primary 编写所有颜色并将它们“移动”到与新基本颜色相同的差异的最简单方法是与 btn-primary 的基本颜色不同,这实际上#006dcc是我从bootstrap.css.
Is there a calculator to easily change the color like:
是否有计算器可以轻松更改颜色,例如:
newcolor=(006ecc-006dcc)+aaaaaa=aaabaa
so that I shoudn't split each color into 3 hex numbers and find the difference for each 3 pairs of each color?
这样我就不应该将每种颜色分成 3 个十六进制数字并找出每种颜色每 3 对的差异?
Or, is there any easier correct way to change color with keeping gradients, hovers, fixes for all browsers for Twitter Bootstrap buttons? Thank you in advance.
或者,是否有任何更简单的正确方法来更改颜色,同时保留所有浏览器的渐变、悬停和 Twitter Bootstrap 按钮的修复?先感谢您。
回答by technoTarek
This site appears to be down at the moment, but I've found it quite handy (when it's working): http://charliepark.org/bootstrap_buttons/
该网站目前似乎已关闭,但我发现它非常方便(当它工作时):http: //charliepark.org/bootstrap_buttons/
Hopefully there's just a temp issue with the site.
希望该网站只是一个临时问题。
回答by Bass Jobsen
Try http://twitterbootstrapbuttons.w3masters.nl/?color=%23006dccyou can enter your html color code (hexadecimal) and get three variations of buttons (dark, light, spin).
试试http://twitterbootstrapbuttons.w3masters.nl/?color=%23006dcc你可以输入你的 html 颜色代码(十六进制)并获得三种按钮(深色、浅色、旋转)。

