javascript - Pseudo-classes aren't working in IE for jQuery accordion -


i building accordion can expand on click each , has expand button. i've used ::before on accordion heads , on expand button. appears fine in chrome , firefox ie seems having issue showing psuedo-classes , margins. appreciated!!

http://jsfiddle.net/jherh/

i can assume using ie8 test this. if case, ie8 supports single colon syntax before , after pseudo elements.

::after -> :after ::before -> :before

i believe browsers support single colon syntax well, best use unless can drop

edit - work around

after looking @ fiddler, reason (still looking @ it), ie putting li elements empty tag. causing issues selector. have #nav > li > a in ie, sees them #nav > emptyel > li > a.

the simplest way fix make selector not specific, #nav li a want now.

edit 2 - solution

so, @ least fiddler, have malformed html. encourage go through code , make sure every element has start , end should.

to make work in fiddler, had add <tr><td> elements right before <ul id="nav"> element , </td></tr> right before ending </tbody> element.

working fiddler


Comments

Popular posts from this blog

c++ - OpenCV Error: Assertion failed <scn == 3 ::scn == 4> in unknown function, -

php - render data via PDO::FETCH_FUNC vs loop -

The canvas has been tainted by cross-origin data in chrome only -