<html><body> <div style="position:absolute;z-index:999;width:200px;height:200px;background:rgba(0,0,0,0.5)"></div> <div style="position:absolute;width:100px;height:100px;background:red" onclick="alert('Clickable!!')"></div></body></html>因為“顯示”和“交互”的區域不完全一致,所以有了這個小白問題請問能夠做到這種效果嗎?
重疊的div,上層只遮擋下層顏色,不遮擋下層監聽器,這樣現實嗎?
叮當貓咪
2018-09-12 10:09:47

