You need to enable JavaScript to run this app. 如何移除网站左侧异常白色边框 排查元素内外边距仍未解决
优惠活动
大模型
产品
解决方案
定价
更多

如何移除网站左侧异常白色边框 排查元素内外边距仍未解决

enter image description here

你可以在站点 https://www.bdevg.com 上看到这处异常白色边框:边框仅出现在页面左侧,右侧并无对应白色边距。

为实现波浪动画效果,我使用了一张背景图(顶部区块的底部波浪造型),该区块本身也设置了背景色。

这个顶部整体区块的样式配置如下:

paddingTop: "30px",
position: 'relative',
width: '100%',
height: '60vh',
background: '#556cd6', //#3544ff, #35aaff
overflow: 'hidden',
margin: "0px"

波浪区块的样式配置如下:

height: "100px",
width: "100%",
position: "absolute",
bottom: "0",
left: "0",
overflow: "hidden",
backgroundImage: `url(/images/layout/wave.png)`,
backgroundSize: "1000px 100px"

我已经逐一排查了所有兄弟元素、父元素可能施加的内边距与外边距,但始终没有定位到问题根源,也没有找到可行的修复方案。


内容的提问来源于stack exchange,提问作者Rahul

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.11.13 00:06:08