FireFox 3 当前是否存在与清除浮动和忽略负边距相关的错误?

发布于 2024-08-30 12:40:43 字数 131 浏览 4 评论 0原文

我一直在谷歌搜索,但还没有真正找到直接的答案。我很想知道 Firefox 3 在尝试对要清除浮动或包含另一个浮动元素的 div 应用负边距时是否存在错误?

Firefox 似乎忽略了负边距,但 Web-kit 浏览器相应地尊重它。

I've been doing some Googling, but haven't really found a straight answer. I'm curious to know if Firefox 3 has a bug when trying to apply a negative margin to a div that is either clearing a float or contains another element being floated?

Firefox seems to ignore the negative margin, but Web-kit browses respect it accordingly.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

近箐 2024-09-06 12:40:43

经过大量试验和错误后,我在 display: inline-block; 上阅读了一些相关片段,并将其添加到 div 后,我应用了负边距,margin-top: -10px ; 成功了。

After a lot of trial and error I read a few related snippets on display: inline-block; and after adding that to the div I am applying the negative margin, margin-top: -10px; it worked.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文