簡體   English   中英

小屏幕上的Bootstrap Jumbotron寬度問題

[英]Bootstrap jumbotron width issue on small screen

我的jumbotron出現問題,其中包含一些文本和一個按鈕。 基本上在小屏幕(320)上,其中包含的文本不再顯示在中間,並且白色的側邊欄出現在右側,我無法確定它的來源。 您可以在下面的240和320屏幕上看到它: http : //mattkersley.com/sensitive/網站是http://test.assatena.it/

html

<div class="jumbotron vertical-center container-fluid center-block">
    <div class="container center-block">
        <h1 class="center-block">Associazione Culturale e Musicale Atena</h1>
        <div class="text-center center-block"><a data-toggle="modal" href="#modal-iscrizione" class="page-scroll btn btn-success btn-xl">iscriviti qui!</a></div>
    </div>
</div>

的CSS

.jumbotron{
  position: relative;
  background-image: url(http://www.assatena.it/wp-content/uploads/2014/06/sfondo1.png);
  background-size: cover;
  height: 100%;
  width: 100%;
  text-align: center;
  margin: 0 auto;
  overflow: hidden;
}

謝謝

img{max-width:100%;}
.jumbotron h1 {word-wrap: break-word;}

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM