首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >引导模板拒绝在移动电话上响应

引导模板拒绝在移动电话上响应
EN

Stack Overflow用户
提问于 2016-04-15 17:30:32
回答 2查看 95关注 0票数 0

我对让我的Bootstrap网站做出响应感到不快,它在iPad和更大的设备上的响应是基本的,但是在移动电话上,竞赛“解散”,改变元素的字体/大小来引导默认的元素。我检查了所有的CSS链接(引导主CSS,JS等),它们都在适当的位置,并正确定位在html文件中。我想提的是,我正确地使用了引导网格系统,我不知道为什么它拒绝在手机上响应。

https://jsfiddle.net/hbb1sLut/7/

现场直播:http://i1cevic.com

html

代码语言:javascript
复制
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1 maximum-  scale=1">
<meta name="description" content="">
<meta name="author" content="">
<title>test</title>    

<!--[if lt IE 9]>
<script src="js/html5shiv.js"></script>
<script src="js/respond.min.js"></script>
<![endif]-->       

<link href="css/style.css" rel="stylesheet">
<link rel="stylesheet" href="css/animate.css">
<link rel="stylesheet" href="css/bootstrap.min.css">

<!-- Fonts -->

<link rel="stylesheet"  href="http://code.ionicframework.com/ionicons/2.0.1/css/ionicons.min.css">
<link href="https://fonts.googleapis.com/css?family=Montserrat:400,700" rel="stylesheet" type="text/css">
<link href="https://fonts.googleapis.com/css?family=Raleway:200,300,400" rel="stylesheet" type="text/css">
<link href='https://fonts.googleapis.com/css?family=Open+Sans:400,300,300italic' rel='stylesheet' type='text/css'></title>
</head>
<body>
<!-- Header -->
    <section id="FullScreen">
        <div class="container home-container text-center">
            <h1><font color="#fff">First Line<br>Second Line</font></h1>

            <a>RANDOM CTA</a>
        </div>

    </section>
<!-- End Header -->

<section id="section1">
    <div class="container">                                      
        <!-- Section Title -->
            <div class="text-center">
                <h2><font color="#000">Test</font><font color="#000">   Test</font></h2>
                <h5>lorem ipsum</h5>
    </div>
         <!-- End Of Section Title -->               

    <div class="row">
        <div class="col-md-4">
            <div class="media">
                <div class="media-body">
                <h3 class="media-heading">Test</h3>
                    <p>Lipsum</p>
                </div>
            </div>
        </div><!--/.col-md-4-->

          <div class="col-md-4">
              <div class="media">
                  <div class="media-body">
                      <h3 class="media-heading">Test</h3>
                      <p>Lipsum</p>
                  </div>
              </div>
          </div><!--/.col-md-4-->

          <div class="col-md-4">
              <div class="media">
                  <div class="media-body">
                      <h3 class="media-heading">Test</h3>
                      <p>Lipsum</p>
                  </div>
              </div>
          </div><!--/.col-md-4-->
    </div>
    </div><!--/.row-->
    </section>

<!-- jQuery (necessary for Bootstrap's JavaScript plugins) --> 
<script src="js/jquery.js"></script> 
<!-- Bootstrap JS -->
<script src="js/bootstrap.min.js"></script> 



   </script>
    </body>
    </html>

css

代码语言:javascript
复制
/* Global Styles */

html,
body {

width: 100%;
height: 100%;
     }

a:hover,
a:focus {
text-decoration: none;
outline: none; 
    } 

a {
-webkit-transition: all 0.2s ease-in-out;
-moz-transition: all 0.2s ease-in-out;
-o-transition: all 0.2s ease-in-out;
-ms-transition: all 0.2s ease-in-out;
transition: all 0.2s ease-in-out;
} 





#FullScreen {
position: relative;
display:table;
color: #fff;
width:100%;
height:100%;
background-image: url(../img/bg.jpg);
background-size:cover;
background-position:center bottom;

            }

#section1 {

padding-top:90px;
padding-bottom:90px;

          }





/* Vertical + Horizontal Center */


.home-container {
display: table-cell;
text-align:center;
vertical-align: middle;
                }




/* Typography */

.bold {
font-weight:bold;
      }

p {

font-family: 'Raleway', sans-serif;
font-weight: 300;
font-size: 14px;
color:#787878;
line-height:25px;


  }

h5 {
font-family: 'Raleway', sans-serif;
font-weight: 300;
font-size: 18px;
letter-spacing:normal;
color:#787878;

   }

h4 {
font-family: 'Raleway', sans-serif;
font-weight: 100;
font-size: 46px;
letter-spacing:-1px;
line-height:30%;

}

h3 {
font-family: 'Montserrat', sans-serif;
font-weight: 400;
font-size: 20px;
letter-spacing:-0.5px;
color:black;
   }
EN

回答 2

Stack Overflow用户

回答已采纳

发布于 2016-04-15 17:49:11

我不知道你说的比赛是什么意思

但是我在不同大小的屏幕上测试了你的现场站点,没有什么会消失,它能像预期的那样工作。

票数 1
EN

Stack Overflow用户

发布于 2016-04-15 17:58:35

编辑活动代码(上传到http://i1cevic.com/),以包含CDN引导链接,而不是您自己下载的链接。请始终尝试使用CDN。

希望这有助于解决这个问题。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/36653428

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档