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 id="birds"> <img src="birds.png" class="cover"> </div> #birds{ position: relative; } #birds img.cover{ position: absolute; float:right; margin-left: 4.8%; }
我不太确定你在追求什么,但如果我猜测一下,那就是pointer-events: none;
pointer-events: none;
不幸的是,目前这在 Internet Explorer 或 Opera 中不起作用。