bootstrap 2.3.2 navbar inside elements become invisible after first collapse only on Chrome mobile

与世无争的帅哥 提交于 2019-12-31 00:58:26

问题


i have this very strange problem with bootstraps navbar 2.3.2.

this problems also happens on their official page:

http://getbootstrap.com/2.3.2/examples/starter-template.html

the navbar works fine on desktops.

on mobiles on every web browser i checked every thing seems to work just fine.

the problem only occurs on chrome mobile.

on clicking the menu for the first time every thing is shown and OK.

when collapsing it back and then clicking again to see the menu suddenly the inside elements become invisible. if you will rotate your phone suddenly they will appear again.

again, this haapens only on chrome mobile exactly as it happens on the example i gave in the url.

this is very strange and i don't want to move my site to bootstrap 3.

please help me there has to be something with the css that could solve this.

thanks.


回答1:


I have fixed the issue:

inside bootstrap-responsive.css:

@media (max-width: 480px) {
  .nav-collapse {
    -webkit-transform: translate3d(0, 0, 0);
  }
.
.
.
.
}

just delete this rule inside the max-width: 480px.

:)



来源:https://stackoverflow.com/questions/19477766/bootstrap-2-3-2-navbar-inside-elements-become-invisible-after-first-collapse-onl

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