简体   繁体   English

如何去除整个网页周围的空白

[英]How to remove white space around entire webpage

I'm a CSS/HTML beginner trying to put together a webpage for a school assignment.我是一名 CSS/HTML 初学者,试图为学校作业整理一个网页。

There's a lot of white space around my entire webpage that I'm not sure how to remove.我的整个网页周围有很多空白区域,我不确定如何删除。 You can see it if you try to scroll right on the page.如果您尝试在页面上向右滚动,您可以看到它。 It's especially noticeable on mobile.在手机上尤其明显。 I'm trying to make this webpage look good on all devices, but I can't really improve the responsiveness of this design without first fixing this issue.我试图让这个网页在所有设备上看起来都很好,但是如果不首先解决这个问题,我就无法真正提高这个设计的响应能力。 Thank you so much in advance for your help.非常感谢您的帮助。

See what I'm referring to here看看我在这里指的是什么

just try setting the min-width to 100vw.只需尝试将最小宽度设置为 100vw。

write first line css style写第一行 css 风格

  • { margin: 0; {边距:0; padding: 0;填充:0; box-sizing: border-box; box-sizing:边框框; } }

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM