internet explorer 8 - IE8 Standards mode: onclick handler on div does not fire -


In my application I have a line of buttons for BBcode which is included in different places. Each button has a certain dimension, a background There is a blank box with an image and an onclick handler. It has worked very well in all browsers so far.

Now I have added another example of this line, but at the moment it is inside a fully deployed pop-up developer. (At least this is a remarkable difference which I can think of, because otherwise it is the exact same code.) It works in all browsers except IE8, where clicking on the button does nothing until I I do not switch to compatibility mode, in that case it works very well.

Is there no other way that Internet explorer should do this?

I had the same problem in IE8. Transparent areas in the DIV were not clickable. A background-image is a transparent .gif . An easy solution to set up

My solution in CSS:

  Background image: url ("images / pixel .gif ");  

... where pixel.gif is 1x1 transparent image.


Comments