.navbar .nav > li > a.btn {
display: inline-block; padding: 4px 10px 4px; margin: 5px 5px 6px; line-height: 18px;
}
.navbar .nav > li > a.btn-primary,
.navbar .nav > li > a.btn-primary:hover {
text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
color: #ffffff;
}
.navbar .nav > li > a.btn-primary:active {
color: rgba(255, 255, 255, 0.75);
}
.navbar .nav > li > a..btn-primary {
background-color: #0074cc;
background-image: -moz-linear-gradient(top, #0088cc, #0055cc);
background-image: -ms-linear-gradient(top, #0088cc, #0055cc);
background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#0088cc), to(#0055cc));
background-image: -webkit-linear-gradient(top, #0088cc, #0055cc);
background-image: -o-linear-gradient(top, #0088cc, #0055cc);
background-image: linear-gradient(top, #0088cc, #0055cc);
background-repeat: repeat-x;
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#0088cc',endColorstr='#0055cc', GradientType=0);
border-color: #0055cC#0055cC#003580;
border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
filter: progid:dximagetransform.microsoft.gradient(enabled=false);
}
.navbar .nav > li > a.btn-primary:hover,
.navbar .nav > li > a.btn-primary:active,
.navbar .nav > li > a.btn-primary.disabled,
.navbar .nav > li > a.btn-primary[disabled] {
background-color: #0055cc;
}
.navbar .nav > li > a.btn-primary:active,
.navbar .nav > li > a.btn-primary.active {
background-color: #004099 \9;
}
@mgraph你的意思是完全消除了'btn'類??? - 我不確定是否真的明白你的觀點(我使用的是一個香草Twitter Twitter Bootstrap ...有一兩個調整......這就是全部) – 2012-07-07 11:33:16
可能重複[Twitter引導,按鈕盤旋風格? ](http://stackoverflow.com/questions/12501224/twitter-bootstrap-buttons-hover-style) – 2016-08-19 22:41:38