html创建表格的快捷方式,在不影响其他HTML表格的情况下,使用CSS表格的最快捷方式...

你可以将一个类应用到你想要影响的表,然后在你的CSS中使用这个类?

在你的HTML中,你可以把:

... CONTENT OF THE TABLE, AS NORMAL ...

然后,将类选择器添加到您的CSS:

table.mytable { border-collapse: collapse; border: 1px solid #839E99;

background: #f1f8ee; font: .9em/1.2em Georgia, "Times New Roman", Times, serif; color: #033; }

.mytable caption { font-size: 1.3em; font-weight: bold; text-align: left; padding: 1em 4px; }

.mytable td,

.mytable th { padding: 3px 3px .75em 3px; line-height: 1.3em; }

.mytable th { background: #839E99; color: #fff; font-weight: bold; text-align: left; padding-right: .5em; vertical-align: top; }

.mytable thead th { background: #2C5755; text-align: center; }

.mytable .odd td { background: #DBE6DD; }

.mytable .odd th { background: #6E8D88; }

.mytable td a,

.mytable td a:link { color: #325C91; }

.mytable td a:visited { color: #466C8E; }

.mytable td a:hover,

.mytable td a:focus { color: #1E4C94; }

.mytable th a,

.mytable td a:active { color: #fff; }

.mytable tfoot th,

.mytable tfoot td { background: #2C5755; color: #fff; }

.mytable th + td { padding-left: .5em; }

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值