Navbar height changing

喜你入骨 提交于 2019-12-13 05:52:04

问题


In the start sample for Bootstrap, as I shrink the width of the browser, the navbar suddenly becomes taller (as the menu options go into the dropdown button). Is there any way to control this?


回答1:


Bootstrap handles browser width changes through CSS Media Queries. You can override them by creating your own CSS for the navbar and including it after the bootstrap one, for example.




回答2:


I encountered exactly this issue and i found a solution after some research.

Changing below "padding:" to 0px:

navbar-fixed-top .navbar-inner,  .navbar-fixed-bottom .navbar-inner {
padding: 0px;}

Will fix the issue. I guess the change can also be done in the LESS file and recompiling the css, but i put my change in the "main.css" file instead.



来源:https://stackoverflow.com/questions/11146773/navbar-height-changing

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!