gpt4 book ai didi

html - Jumbotron 背景图像未显示全 Angular

转载 作者:行者123 更新时间:2023-11-28 06:22:58 25 4
gpt4 key购买 nike

我的 Jumbotrons 背景图像不是全宽。

知道为什么吗?

实时链接:http://185.123.96.102/~kidsdrum/moneynest.co.uk/

您可以看到背景图像的宽度没有达到导航栏的宽度。

HTML

<div class="container special">
<div class="jumbotron">
<div class="container text-center">
<div class="h1extrapadding hidden-xs hidden-sm"></div> <h1 class="boldme">Aged 20-30 & frustrated with money?</h1>
<div class="greenpromobox">
<div class="h2extrapadding hidden-xs hidden-sm"></div> <h2 class="boldme">Take our free <b class="jumpstarttext">Jumpstart Your Finances</b> class to<br /> quickly gain control over your finances</h2>


<!-- Begin MailChimp Signup Form -->
<div id="mc_embed_signup">
<form action="//moneynest.us11.list-manage.com/subscribe/post?u=9ccf2d2219536b32eaae3c3d1&amp;id=299de51b4e" method="post" id="mc-embedded-subscribe-form" name="mc-embedded-subscribe-form" class="validate" target="_blank" novalidate>
<div id="mc_embed_signup_scroll">


<img src="http://185.123.96.102/~kidsdrum/moneynest.co.uk/img/hand-drawn-arrow.png" id="handarrow" class="hidden-xs hidden-sm" alt="arrow"><input type="email" value="" name="EMAIL" class="email" id="mce-EMAIL" placeholder="Enter your email address" required autofocus>
<!-- real people should not fill this in and expect good things - do not remove this or risk form bot signups-->
<div style="position: absolute; left: -5000px;" aria-hidden="true"><input type="text" name="b_9ccf2d2219536b32eaae3c3d1_299de51b4e" tabindex="-1" value=""></div>
<div class="clear"><input type="submit" value="Start Class Now" name="subscribe" id="mc-embedded-subscribe" class="text-uppercase btn btn-primary btn-lg"></div>
</div>
</form>
</div>

<!--End mc_embed_signup-->

</div>
</div>

</div>
</div>
</div>

CSS

.jumbotron {
background-image: url("../img/checking-finances-in-cafe-blurred.png");
background-size: cover;
color: white;
}

#handarrow {
position: relative;
top: -50px;
left: -5px;
}

html,body {height:100%;}
.special,.special .jumbotron
{height:100%;
width: 100%;
}

最佳答案

我认为您的问题可能是 htmlbody 标签上的默认边距或填充。尝试:

html, body {

margin: 0px;
padding: 0px;

}

不确定这是否有效,但值得一试。

关于html - Jumbotron 背景图像未显示全 Angular ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35464943/

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