如何制作动态 HTML 页面宽度,在调整大小时以 3 个设备步骤跳转 - 无需 js?

发布于 2024-12-17 16:59:10 字数 260 浏览 3 评论 0原文

我找到了 此页面,在调整 windowwidth 大小后,它完全改变了它的 css 值。我想到了 Javascript,但它甚至在禁用 JS 的情况下也能实现。如果调整页面大小,宽度将分 3 步更改。 firebug 或 chrome 显示的计算出的 css 值不受影响,但您肯定会看到更改。我搜索了某种媒体查询或其他内容,但什么也没有。希望有人理解发生了什么=)我想用它而不是媒体查询

I found this Page and after resizing windowwidth, it totally changed its css-values. I thought of Javascript, but it even does with JS disabled. If you resize the Page, it changes the width in 3 steps. The computed css-values shown by firebug or chrome are not affected, but you definitly see the change. I searched for some kind of media-query or something else, but there was nothing. Hope someone understands what's going on =) I'd like to use it instead of media-querys

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

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

发布评论

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

评论(1

韬韬不绝 2024-12-24 16:59:10

他们实际上正在使用媒体查询。您可以通过在 他们的 css 中搜索 @media 来轻松查看它,有很多匹配项。

They are actually using media queries. You can easily check it out by searching in their css for @media, there are plenty of matches.

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