单击透明的.png [英] Clicking through a transparent .png

查看:161
本文介绍了单击透明的.png的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

首先,我想说myspace是一种痛苦。但是,音乐家喜欢它,我可以做一些钱为他们做布局。我在myspace的原始外观上覆盖了一层.png,但需要利用myspace音乐播放器。所以,我做了一个图片框,围绕myspace播放器,有一个透明的中心,所以你可以看到myspace播放器。不幸的是,播放器没有完整的功能。当我悬停时,它似乎响应正确,但不是当我点击。有没有人知道如何解决这个问题?

First off, I would like to say that myspace is a pain. But, musicians love it, and I can make some money doing layouts for them. I overlayed a layer of .png's over myspace's original look, but need to utilize the myspace music player. So, I made a picture frame that surrounds the myspace player that has a transparent center so you can see the myspace player. unfortunately, the player doesn't have full functionality. It seems to respond correctly when I hover, but not when I click. does anyone know how to solve this problem?

你可以看到我在说什么:myspace.com/gprettydesigns

You can see what I'm talking about here: myspace.com/gprettydesigns

推荐答案

添加

pointer-events: none;

,您可以透过点击事件传送。

on your overlay to alow click events to pass through it. It's a fairly recent property so not all browser may understand it.

有关 https://developer.mozilla.org/en/css/pointer-events

这篇关于单击透明的.png的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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