Html 引导导航栏不是移动设备的固定顶部

Html 引导导航栏不是移动设备的固定顶部,html,css,twitter-bootstrap,Html,Css,Twitter Bootstrap,由于某些原因,当通过手机访问网站时,我的html文件不会将导航栏固定在顶部。然而,对于我的PC网络浏览器,它固定在顶部。这里到底出了什么问题 注意:如果我删除responsive.css,那么移动版本在顶部是固定的,但没有响应。 各种不同的答案建议导航条固定顶部、0像素填充和用户可伸缩编号。这些似乎都不适合我 <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8">

由于某些原因,当通过手机访问网站时,我的html文件不会将导航栏固定在顶部。然而,对于我的PC网络浏览器,它固定在顶部。这里到底出了什么问题

注意:如果我删除responsive.css,那么移动版本在顶部是固定的,但没有响应。 各种不同的答案建议导航条固定顶部、0像素填充和用户可伸缩编号。这些似乎都不适合我

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <link href="css/bootstrap.min.css" rel="stylesheet" media="screen">
    <link href="css/bootstrap-responsive.min.css" rel="stylesheet" media="screen">
    <link href="css/bootstrap.css" rel="stylesheet" media="screen">
    <link href="css/bootstrap-responsive.css" rel="stylesheet" media="screen">
    <title>T6</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="">
    <meta name="author" content="">

    <!-- Le styles -->
    <link href="../css/bootstrap.css" rel="stylesheet">
    <style type="text/css">
      body {
        padding-top: 0px;
        padding-bottom: 0px;
        background-color: #f5f5f5;
      }

      .form-signin {
        max-width: 300px;
        padding: 19px 29px 29px;
        margin: 0 auto 20px;
        background-color: #fff;
        border: 1px solid #e5e5e5;
        -webkit-border-radius: 5px;
           -moz-border-radius: 5px;
                border-radius: 5px;
        -webkit-box-shadow: 0 1px 2px rgba(0,0,0,.05);
           -moz-box-shadow: 0 1px 2px rgba(0,0,0,.05);
                box-shadow: 0 1px 2px rgba(0,0,0,.05);
      }
      .form-signin .form-signin-heading,
      .form-signin .checkbox {
        margin-bottom: 10px;
      }
      .form-signin input[type="text"],
      .form-signin input[type="password"] {
        font-size: 16px;
        height: auto;
        margin-bottom: 15px;
        padding: 7px 9px;
      }

    </style>



  </head>


    <br><br><br>
  <body>

    <div class="navbar navbar-inverse navbar-fixed-top">
      <div class="navbar-inner">
        <div class="container">
          <button type="button" class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
          </button>
          <a class="brand" href="#">TMedia</a>
          <div class="nav-collapse collapse">
            <ul class="nav">
              <li class="active"><a href="#">Home</a></li>
              <li><a href="/Polar/about.html">About</a></li>       
              <li><a href="/Polar/login2.html">Login</a></li>
              <li><a href="/Polar/contact.html">Contact Us</a>
            </ul>
          </div><!--/.nav-collapse -->
        </div>
      </div>
    </div>


 <a href="http://google.com">
<img src="google.jpg" alt="HTML tutorial" width="100" height="100"></a></p>

 <a href="http://yahoo.com">
<img src="yahoo.jpg" alt="HTML tutorial" width="100" height="100"></a></p>

 <!-- /container -->

    <!-- Le javascript
    ================================================== -->
    <!-- Placed at the end of the document so the pages load faster -->

    <script src="http://code.jquery.com/jquery.js"></script>
    <script src="js/bootstrap.min.js"></script>

  </body>
</html>

T6
身体{
填充顶部:0px;
垫底:0px;
背景色:#F5;
}
.表格签名{
最大宽度:300px;
填充:19px 29px 29px;
保证金:0自动20px;
背景色:#fff;
边框:1px实心#e5;
-webkit边界半径:5px;
-moz边界半径:5px;
边界半径:5px;
-webkit盒阴影:0 1px2pRGBA(0,0,0,05);
-莫兹盒阴影:0 1px2pRGBA(0,0,0,05);
盒影:0 1px2pRGBA(0,0,0,05);
}
.表格签名.表格签名标题,
.表格签名.复选框{
边缘底部:10px;
}
.表单登录输入[type=“text”],
.表单登录输入[type=“password”]{
字体大小:16px;
高度:自动;
边缘底部:15px;
填充:7px 9px;
}




实际上,我唯一的问题是我的引导版本


在上面的代码中,我运行的是2.2.2,它并不完全支持所有移动方面。升级到3.0.3后,一切正常。

我知道这并不能回答您的技术问题,但我认为不在小屏幕上安装的原因是房地产更宝贵。在一个大屏幕上,你可以花得起空间。@LukeMcGregor顶部似乎有一些填充物,尽管我没有把它放在那里。对我来说,有没有什么办法完全消除这个?