简体   繁体   English

如何在移动视图中删除网站右侧的多余空白

[英]How to remove Extra white space on right side of website in mobile view

https://comcube.ae/index.html https://comcube.ae/index.html

I'm getting a full vertical white space in this webiste when viewed on mobile.在移动设备上查看时,我在此网站中获得了一个完整的垂直空白区域。 (In Google Chrome Browser) I've tried margin: auto , width: 100% ; (在 Google Chrome 浏览器中)我试过margin: auto , width: 100% ; kind of things... But still not correct.那种事情......但仍然不正确。 The problem is on the index page.问题出在索引页上。 Any help appreciated.任何帮助表示赞赏。 Thank you.谢谢你。

Try and find this using the inspect element and change this in CSS with using media queries because there might be one element on your page which might have a width and a padding or margin exceeding 100%.尝试使用检查元素找到它,并使用媒体查询在 CSS 中更改它,因为页面上可能有一个元素的宽度和填充或边距可能超过 100%。

You can try making overflow-x: hidden;您可以尝试使overflow-x: hidden; in html as well在 html 中也是如此

<style>
html,body{
    overflow-x: hidden;
}
</style>

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

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