Why do links on my transparent div become unclickable in IE?

梦想与她 提交于 2019-12-23 19:16:36

问题


Links on my website: http://rnmtest.co.uk/oddfellows/

If you hit 'Dine' you should see a 'Book Now' button. This element is not clickable in IE. The area below it has a semi-transparent png as the background. The content is loaded via jQuery.

I have put the anchor within a container div as recommended by other websites, but this has had no effect. If I resize the window in IE8 I can sometime click a small portion of the button.

This effect occurs on all anchors, not just the images.


回答1:


This is a known limitation of IE6 - links within a container that use filters to create transparent backgrounds are not clickable You can find more information and a workaround here




回答2:


Once you loaded the content from jquery did you hook in the click event? Did you make sure jquery finished loading the content before you tried to hook the event? It's very easy to do.




回答3:


I had to make the link position:relative; explicitly.



来源:https://stackoverflow.com/questions/2246495/why-do-links-on-my-transparent-div-become-unclickable-in-ie

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!