浮动正在工作,但现在正在迈进。

发布于 2024-10-03 06:45:12 字数 112 浏览 0 评论 0原文

本页:

盒子原本漂浮得很好,中间显示 4 个产品。同事从记事本复制并粘贴完全相同的代码后,除了 URL 更改之外,出现了浮动问题。我翻遍了,也看不出罪魁祸首。

任何帮助表示赞赏。

This page:

The boxes were originally floating fine and showing 4 products across the middle. After a coleague copied and pasted the exact same code from notepad, other than a URL change, the floating issue has occurred. I have looked through and can't see the culprit.

Any help is appreciated.

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

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

发布评论

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

评论(1

靖瑶 2024-10-10 06:45:12

看起来您缺少关闭 div 标签:

...
<div class=xmashp-bottom-box-price>From Only £9.99</div><!--<div style="float: left; width: 35px;"> </div>-->
<div class=hp-bottom-box1>
...

因此您的 hp-bottom-box* 框相互嵌套。在打开下一个 hp-bottom-box* 标记之前添加一个结束 标记,这样就可以了。

Looks like you're missing closing div tags:

...
<div class=xmashp-bottom-box-price>From Only £9.99</div><!--<div style="float: left; width: 35px;"> </div>-->
<div class=hp-bottom-box1>
...

so your hp-bottom-box* boxes are nested inside each other. Add a closing </div> tag before you open the next hp-bottom-box* tag and you should be good.

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