Bootstrap Navbar仅对Android设备无响应

问题描述 投票:0回答:1

我遇到了一个问题,其中可折叠引导程序导航栏扩展了全宽,并且似乎不仅仅响应于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="index.html"><img src="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>

android twitter-bootstrap twitter-bootstrap-3 navbar
1个回答
0
投票

尝试使用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="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" 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="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>
热门问题
推荐问题
最新问题