一个有趣的时刻出现了,即当分辨率为 768 像素或更高的移动版网站没有白色缩进时。
但如果分辨率为425px及更低,分辨率越低,白色缩进越大。我寻求帮助以解决问题或指出我在@media 中写错的地方和内容
我将不胜感激!
@media screen and (min-width: 360px) {
html, body {
width: 100%;
}
.b1 {
width: 100%;
height: 100%;
background: url(First.jpg) repeat;
}
.b1 h1 {
font-size: 60px;
}
<section class="b1">
<div class="content1">
<h1>OMG I NEED HELP</h1>
<a class="btn" href="#Stop" onclick="slowScroll('#Stop')">See more</a>
<a class="btn" href="contactform.html">Contact with me</a>
</div>
</section>



在 CSS 中添加 .b1{margin:0px auto!important;padding:0px!important;}