javascript - How can I use a div that has css styles with browser prefix in the name in a toggleClass? -
i using following solution work cross browser issues having:
in css, using above solution, have like:
.some_class { margin-left: 40px; } .win.ie some_class { margin-left: 100px; } the win.ie some_class gets used on windows ie only.
now, elsewhere in code using javascript using following:
$("#someid").toggleclass("some_class"); what need use .win.ie some_class in above js snippet. how can it?
i tried doing:
$("#someid").toggleclass(".win.ie some_class"); but adds actual class in html. possible accomplish trying here?
this not valid css:
.win.ie some_class { margin-left: 100px; } try this:
.win.ie.some_class which apply styles elements win, ie, , some_class classes. or:
.win.ie .some_class if some_class element child of element win , ie classes.
Comments
Post a Comment