How to remove all inherited CSS formatting for a table?

后端 未结 4 696
感情败类
感情败类 2020-12-13 14:27

I have a table which has a certain style due to the CSS file for the page (it has blue borders, etc...).

Is there a simple way to remove the CSS for that specific ta

4条回答
  •  北荒
    北荒 (楼主)
    2020-12-13 15:02

    Was looking for something like this on a website that used both jqueryui and the tablesorter plugin, for a table inside a tablesorter table. While some of the answers here helped, it wasn't enough, especially since tablesorter uses :hover and jquery ui uses corner rounding, etc. Here is what I came up with:

    I declared a class that when applied to a table will clean it up to some sensible defaults. It's imperative that this css is declared before any other classes it may need to clean up for, ie to it or put it in a