I've got a CSS file which provides some styles, but one of them really sucks (the <code>
tag styling). I'd like to eliminate it, possibly through JavaScript. Is there a quick way to do this?
Edit: These elements don't need styling, and I don't need to replace the existing styling, I just need to get rid of it.
You can make a more specific CSS declaration for <code>
. Mileage may vary, depending on your mark-up.
body code {
... your styling ...
}
See: http://coding.smashingmagazine.com/2010/04/07/css-specificity-and-inheritance/
I ended up just altering the stylesheet and hosting a copy. Not ideal, but functional.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.