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.
我正在制作响应式网站。我已经看到在某些元素中使用了绝对定位。我怎样才能摆脱在移动版本的编码声明媒体查询中的位置。例如:为了获得浮动,我们在移动版的媒体查询中使用 float:none。这样,我如何使用 css 获得绝对和相对位置。
position: static;
这是元素的默认“正常” position。
position
MDN 参考