Bootstrap Navbar仅对Android设备无响应

【Bootstrap Navbar仅对Android设备无响应】追风赶月莫停留,平芜尽处是春山。这篇文章主要讲述Bootstrap Navbar仅对Android设备无响应相关的知识,希望能为你提供帮助。
我遇到了一个问题,其中可折叠引导程序导航栏扩展了全宽,并且似乎不仅仅响应于android移动设备。它在iphone上工作正常。该网站是http://tworingsmedia.com/clients/Cornwall/05/index.html
这是代码:

< header id="header" role="banner"> < nav class="navbar navbar-default navbar-fixed-top" role="navigation"> < div class="container-fluid"> < div class="navbar-header"> < button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse"> < span class="sr-only"> Toggle navigation< /span> < span class="icon-bar"> < /span> < span class="icon-bar"> < /span> < span class="icon-bar"> < /span> < /button> < div class="navbar-brand"> < a href="https://www.songbingjia.com/android/index.html"> < img src="https://www.songbingjia.com/android/img/web-logo03.png" width="270" height="248" alt="Cornwall waterfestival logo" class="logo" id="cornwall-logo"> < /a> < /div> < /div> < div class="navbar-collapse collapse"> < div class="menu"> < ul class="nav nav-tabs" role="tablist"> < li> .....< /li> < /ul> < /div> < /div> < /div> < /nav>


答案尝试使用rem units的图像大小。由于图像没有响应,导航栏没有响应。使用rem单位,它将具有响应性,您可以根据需要定义响应的大小。
Should I use px or rem value units in my CSS?

< link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous"> < script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"> < /script> < script src="http://img.readke.com/220522/23455H612-2.jpg" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"> < /script> < header id="header" role="banner"> < nav class="navbar navbar-default navbar-fixed-top" role="navigation"> < div class="container-fluid"> < div class="navbar-header"> < button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse"> < span class="sr-only"> Toggle navigation< /span> < span class="icon-bar"> < /span> < span class="icon-bar"> < /span> < span class="icon-bar"> < /span> < /button> < div class="navbar-brand"> < a href="https://www.songbingjia.com/android/index.html"> < img src="http://tworingsmedia.com/clients/Cornwall/05/img/web-logo03.png" width="100rem" height="90rem" alt="Cornwall waterfestival logo" class="logo" id="cornwall-logo"> < /a> < /div> < /div> < div class="navbar-collapse collapse"> < div class="menu"> < ul class="nav nav-tabs" role="tablist"> < li> .....< /li> < /ul> < /div> < /div> < /div> < /nav>


    推荐阅读