gpt4 book ai didi

html - 小屏幕上的 Bootstrap 超大屏幕宽度问题

转载 作者:太空宇宙 更新时间:2023-11-04 09:04:03 26 4
gpt4 key购买 nike

我的超大屏幕出现问题,其中包含一些文本和一个按钮。基本上在小屏幕 (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;}

关于html - 小屏幕上的 Bootstrap 超大屏幕宽度问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42571878/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com