Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何在上部尺寸上设置带有 vw 单位的 DIV,但确保最小宽度至少为 100 像素?
.container { min-width:1000px; width: 85vw; }
不管用...
也许你忘了这个
<meta name="viewport" content="width=device-width, initial-scale=1.0">
原始代码运行良好: