简体   繁体   English

如何删除网站右侧出现的白色边距?

[英]How do I remove the white margin appearing on the right side of my website?

This is my first question. 这是我的第一个问题。

I'm having some issue with a bug on my local webpage. 我在本地网页上遇到了一个错误。 I've been creating my own version of an Airbnb website, namely 'tombnb' for a few weeks now but have become stuck with a bug. 我已经创建了自己的Airbnb网站版本,即“ tombnb”已有几个星期了,但是已经被bug困住了。

On the right side of my page, I have a white margin (about 20px wide) that I cannot rid of. 在页面的右侧,我有一个白色边距(约20像素宽),我不能摆脱它。

I hadn't had this problem before I recently added some code to my page to ensure that it's flow didn't change when I altered the size of the browser window. 在我最近向页面中添加一些代码以确保当我更改浏览器窗口的大小时,其流程不会改变时,我还没有遇到这个问题。 (I can't even remember what code that was) and despite removing that code, this white margin still remains. (我什至不记得那是什么代码),尽管删除了该代码,但仍保留了此空白。

Would somebody be able to give me some help in identifying what the cause of the problem is? 有人可以帮助我确定问题的原因是什么吗?

Thank you. 谢谢。

http://pastebin.com/J0aWAXcC - HTML http://pastebin.com/J0aWAXcC-HTML

http://pastebin.com/tPdLXf20 - CSS http://pastebin.com/tPdLXf20-CSS

Your code is incorrect, you are missing one </div> . 您的代码不正确,缺少一个</div>

That will fix your problem. 那将解决您的问题。

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

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