html - Bootstrap 3 导航栏切换高度

标签 html css twitter-bootstrap navbar

我在主页的导航栏中使用了两个导航栏切换按钮。

但是这些按钮与使用 glyphicon 图标不同。

这是截图。

图片链接:/image/mtqm7.jpg

看图片,右上角,两个导航栏切换按钮的高度彼此不同。

如何将两个导航栏切换按钮更改为相同的按钮?

最佳答案

enter image description here

也许你可以根据上面的预览图像覆盖按钮的填充?

因为使用了 inspect 元素,原来的默认样式是

.navbar-toggle {
position: relative;
float: right;
padding: 9px 10px;
margin-top: 8px;
margin-right: 15px;
margin-bottom: 8px;
background-color: transparent;
background-image: none;
border: 1px solid transparent;
border-radius: 4px;
min-height: 33px;
}

然后你也许可以创建一些具有更高优先级的 css 来覆盖默认样式

//inline style , !important as you like.

.navbar-toggle {
    padding-top:12px;  
    padding-bottom:12px;
}

供您引用,
使用您的浏览器开发工具进行实时编辑以满足对齐要求。

关于html - Bootstrap 3 导航栏切换高度,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26831661/

相关文章:

javascript - 在 Firefox 中,输入范围在 mouseup 上触发 "input"事件

javascript - 如何在字段为空时使用类隐藏 DIV?

html - 产生的页面卡在 Rails 的页眉中

css - 使用 Twitter Bootstrap 和 Bonfire 的粘性页脚

javascript - 通用 HTML 表单验证,首选 jQuery

html - JAWS 不读取带有 aria-label 的 header 内部 span 的 aria-label

jquery - 如何防止选项卡重叠?

javascript - 使用 jquery 将页面上的所有价格从一种货币更改为另一种货币?

javascript - IIS url 重写 - css 和 js 被错误地重写

html - IE8 float right drops images on a new line