覆盖在可点击区域 - CSS [英] overlay on clickable region - CSS

查看:158
本文介绍了覆盖在可点击区域 - CSS的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有一种方法,我可以有一个部分透明的图像(或任何真正)覆盖可点击区域使用XHTML和CSS?

Is there a way I can have a partially transparent image (or anything really) overlay a clickable region using XHTML and CSS?

推荐答案


@thirtydot如果你知道一个解决方案
只在一个浏览器中工作,我还是
会喜欢这里!虽然
更支持的更好。

@thirtydot If you know of a solution that works in only one browser I still would love to here it! Although the more support the better.

您可以使用 pointer-events:none

You can use pointer-events: none.

支持: http://caniuse.com/pointer-events (适用于除IE10及更早版本以外的任何地方)

Browser support: http://caniuse.com/pointer-events (works everywhere except IE10 and older)

http://jsfiddle.net/QC5Yw/

这篇关于覆盖在可点击区域 - CSS的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆