设计 Twitter 引导程序按钮 [英] Styling twitter bootstrap buttons
问题描述
Twitter-Bootstrap 按钮非常漂亮.
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?
I am completely unaware of what the css/javascript looks like that twitter uses to maintain those effects.
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.
Changing it requires changing of the CSS. Here is a quick link to that file:
https://github.com/twbs/bootstrap/blob/master/dist/css/bootstrap.css
这篇关于设计 Twitter 引导程序按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!