如何删除表的所有继承的CSS格式? [英] How to remove all inherited CSS formatting for a table?

查看:109
本文介绍了如何删除表的所有继承的CSS格式?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个表,它有一个特定的样式,由于页面的CSS文件(它有蓝色边框,等...)。



简单的方法来删除该特定表的CSS?
我正在考虑像下面这样的命令:

  style =nostyle

有这样的东西吗?



Eric Meyer的重置CSS

  table,caption,tbody,tfoot,thead,tr,th,td {
margin:0;
padding:0;
border:0;
outline:0;
font-size:100%;
vertical-align:baseline;
background:transparent;
}


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 table? I was thinking something along the lines of a command like:

style="nostyle"

Does anything like this exist?

解决方案

Try this.

From Eric Meyer's Reset CSS

table, caption, tbody, tfoot, thead, tr, th, td {
    margin: 0;
    padding: 0;
    border: 0;
    outline: 0;
    font-size: 100%;
    vertical-align: baseline;
    background: transparent;
}

这篇关于如何删除表的所有继承的CSS格式?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆