造型Twitter的引导按钮 [英] Styling twitter bootstrap buttons

查看:137
本文介绍了造型Twitter的引导按钮的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Twitter的引导按钮赫然美丽。 试出来滚动在他们

Twitter-Bootstrap buttons are awesomely beautiful. Try them out by scrolling over them

但他们的颜色是有限的。

But they are limited in colors.

有什么办法,同时保持了自举取得了如此美丽和轻松美丽的悬停效果我可以改变按钮的基本颜色?

Is there any way I could change the base color of the button while keeping the beautiful hover-over effect that bootstrap has made so beautiful and effortless?

我完全不知道的CSS / JavaScript的样子,Twitter的使​​用来维持这些效果。

I am completely unaware of what the css/javascript looks like that twitter uses to maintain those effects.

推荐答案

基本上,Twitter的引导的按钮在CSS所控制.btn {}。你必须做的是去CSS文件,找到它说:BTN,改变颜色设置。但是,它不是只是做简单,既然你也必须改变什么颜色的按钮变化,当你选中它,等等。要做到这一点到,你要寻找在CSS其他标记,如.btn:悬停{} 等。

Basically, the buttons in Twitter Bootstrap are controlled in CSS by ".btn{}". What you have to do is go to the CSS file and find where it says "btn" and change the color settings. However, it's not as simple as just doing that since you also have to change what color the button changes into when you highlight it, etc. To do THAT, you have to look for other tags in CSS like ".btn:hover{}", etc.

更改它需要的CSS变化。这里是一个快速链接到该文件:

Changing it requires changing of the CSS. Here is a quick link to that file:

<一个href=\"https://github.com/twbs/bootstrap/blob/master/dist/css/bootstrap.css\">https://github.com/twbs/bootstrap/blob/master/dist/css/bootstrap.css

这篇关于造型Twitter的引导按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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