Why do links on my transparent div become unclicka

2019-07-03 23:29发布

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.

3条回答
Emotional °昔
2楼-- · 2019-07-04 00:18

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

查看更多
SAY GOODBYE
3楼-- · 2019-07-04 00:27

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.

查看更多
够拽才男人
4楼-- · 2019-07-04 00:28

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

查看更多
登录 后发表回答