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!!
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.
Comments
Post a Comment