Override and reset CSS style: auto or none don't work

后端 未结 7 1179
灰色年华
灰色年华 2021-01-30 04:50

I would like to override following CSS styling defined for all tables:

table {
        font-size: 12px;
        width: 100%;
        min-width: 400px;
               


        
7条回答
  •  日久生厌
    2021-01-30 05:25

    "none" does not do what you assume it does. In order to "clear" a CSS property, you must set it back to its default, which is defined by the CSS standard. Thus you should look up the defaults in your favorite reference.

    table.other {
        width: auto;
        min-width: 0;
        display:table;
    }
    

提交回复
热议问题