答案 0 :(得分:6)
您可以使用javascript
$(document).ready(function(){
var highest = null;
$(".nav-tabs a").each(function(){ //find the height of your highest link
var h = $(this).height();
if(h > highest){
highest = $(this).height();
}
});
$(".nav-tabs a").height(highest); //set all your links to that height.
});
对于CSS你可以做
.nav-tabs a {
height: 62px;
}
对于您的示例62px有效,但您需要对其进行调整,使其足够大以适应具有最多文本的选项卡。 还要确保在bootstrap css之后应用你的css。