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.
我有一个 div,它需要有 position:relative;。我希望该 div 不会将其他内容推开,所以基本上我希望内容位于与 div 不存在相同的位置,而不必使用 position:absolute;。我怎样才能做到这一点?
谢谢。
img { position: absolute; }
演示