我的jumbotron出现问题,其中包含一些文本和一个按钮。基本上在小屏幕(320)上,其中包含的文本不再显示在中间,并且白色的侧边栏出现在右侧,我无法确定它的来源。您可以在240和320屏幕上看到它:http://mattkersley.com/responsive/网站是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;}