0

I'm creating a mobile version of an website and to make it work good I need to remove "style" attributes from certain tags all over the page.

Example:

 <div class="gallery-arrows" style="top:85px;"></div><h8 style="top:85px;"><a href="https://twitter.com/TeamTHCRacing" style="color:#ffffff;">THC Racing on Twitter!</a></h8>

and i need to be:

 <div class="gallery-arrows"></div><h8><a href="https://twitter.com/TeamTHCRacing" style="color:#ffffff;">THC Racing on Twitter!</a></h8>

Is there something i could add to remove them? Like a script or something?

Thanks!

4

1 回答 1

0

Using jquery it's simple:

$('div,h8,a').removeAttr("style");
于 2013-10-19T18:23:19.680 回答