[英]Android and IOS mobile devices :calculate browser screen height excluding address bar and navigation bar height
[英]Bootstrap changing navigation bar height for mobile
我正在使用引導程序,並且設法將寬度超過768像素時導航欄的高度從50像素更改為80像素。 當我通過移動設備查看時,它回到了50px。 如何更改高度並根據高度將菜單圖標居中?
這是我改變高度的方法
.navbar {
min-height:80px !important;
}
所有幫助表示贊賞。 謝謝
更改@navbar-height
和@navbar-padding-vertical
你有嘗試過嗎?
.navbar {
min-height:50px !important;
}
@media (min-width: 768px) {
.navbar {
min-height:80px !important;
}
}
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.