分享7款颜色的CSS表格样式美化网页表格用户体验
![]() | ![]() | ![]() | ![]() |
| 【性价之王】 | 【线路之王】 | 【价格之王】 | 【配置之王】 |
| 【免费之王】 | 【香港首推】 | 【梯子之王】 | 【独服之王】 |

蜗牛并不是一名网页设计师,但是经常在博客上捣鼓、修改一些自认为不太好的用户体验也仅仅局限在修改一些简单的CSS样式上,遇到不能解决的问题可以通过搜索查阅文档。随着时间的积累,我们越发感觉到CSS样式的无穷奇妙,比如我们在制作某个表格时候,可以简单的利用CSS样式表的修改变化多样的CSS表格样式。在页面布局和内容分享的时候,表格是比较常用到的,有些时候蜗牛在分享评测内容的时候,为了图省事可能就直接截图,以后可能会多一些样式的分享,这样用户体验以及如果信息有变动可以直接修改,而不是再截图。
在之前博文中,已经有分享过几篇关于CSS表格样式的内容:
16款用户体验优秀的HTML CSS价格表格模板 附演示及下载
8款设计师常用漂亮的HTML CSS表格样式
6款漂亮HTML CSS样式用户留言表单
今天蜗牛在浏览几个海外前端博客时候,看到以下7款颜色CSS表格样式的整理还是比较好的,尤其是需要在网页中添加表格时候,看似简单的样式,但是在需要使用的时候就直接复制,节省很多时间。
第一种:
CSS表格样式之一
CSS样式代码部分:
#table-1 thead, #table-1 tr {border-top-width: 1px;border-top-style: solid;border-top-color: rgb(230, 189, 189);}#table-1 {border-bottom-width: 1px;border-bottom-style: solid;border-bottom-color: rgb(230, 189, 189);}#table-1 td, #table-1 th {padding: 5px 10px;font-size: 12px;font-family: Verdana;color: rgb(177, 106, 104);}#table-1 tr:nth-child(even) {background: rgb(238, 211, 210)}#table-1 tr:nth-child(odd) {background: #FFF}第二种:
CSS表格样式之二
CSS样式代码部分:
#table-2 thead, #table-2 tr {border-top-width: 1px;border-top-style: solid;border-top-color: rgb(230, 189, 189);}#table-2 {border-bottom-width: 1px;border-bottom-style: solid;border-bottom-color: rgb(230, 189, 189);}#table-2 td, #table-2 th {padding: 5px 10px;font-size: 12px;font-family: Verdana;color: rgb(177, 106, 104);}#table-2 tr:nth-child(even) {background: rgb(238, 211, 210)}#table-2 tr:nth-child(odd) {background: #FFF}第三种:
CSS表格样式之三
CSS样式代码部分:
#table-3 thead, #table-3 tr {border-top-width: 1px;border-top-style: solid;border-top-color: rgb(235, 242, 224);}#table-3 {border-bottom-width: 1px;border-bottom-style: solid;border-bottom-color: rgb(235, 242, 224);}#table-3 td, #table-3 th {padding: 5px 10px;font-size: 12px;font-family: Verdana;color: rgb(149, 170, 109);}#table-3 tr:nth-child(even) {background: rgb(230, 238, 214)}#table-3 tr:nth-child(odd) {background: #FFF}第四种:
CSS表格样式之四
CSS代码样式部分:
#table-4 thead, #table-4 tr {border-top-width: 1px;border-top-style: solid;border-top-color: rgb(211, 202, 221);}#table-4 {border-bottom-width: 1px;border-bottom-style: solid;border-bottom-color: rgb(211, 202, 221);}#table-4 td, #table-4 th {padding: 5px 10px;font-size: 12px;font-family: Verdana;color: rgb(95, 74, 121);}#table-4 tr:nth-child(even) {background: rgb(223, 216, 232)}#table-4 tr:nth-child(odd) {background: #FFF}第五种:
CSS表格样式之五
CSS代码样式部分:
#table-5 thead th {background-color: rgb(156, 186, 95);color: #fff;border-bottom-width: 0;}#table-5 td {color: #000;}#table-5 tr, #table-5 th {border-width: 1px;border-style: solid;border-color: rgb(156, 186, 95);}#table-5 td, #table-5 th {padding: 5px 10px;font-size: 12px;font-family: Verdana;font-weight: bold;}第六种:
CSS表格样式之六
CSS样式代码部分:
#table-6 thead th {background-color: rgb(128, 102, 160);color: #fff;border-bottom-width: 0;}#table-6 td {color: #000;}#table-6 tr, #table-6 th {border-width: 1px;border-style: solid;border-color: rgb(128, 102, 160);}#table-6 td, #table-6 th {padding: 5px 10px;font-size: 12px;font-family: Verdana;font-weight: bold;}第七种:
CSS表格样式之七
CSS样式代码部分:
#table-7 thead th {background-color: rgb(81, 130, 187);color: #fff;border-bottom-width: 0;}#table-7 td {color: #000;}#table-7 tr, #table-7 th {border-width: 1px;border-style: solid;border-color: rgb(81, 130, 187);}#table-7 td, #table-7 th {padding: 5px 10px;font-size: 12px;font-family: Verdana;font-weight: bold;}以上7种颜色的CSS表格样式部分,根据我们自己的需要可以直接复制不同的颜色部分加上行列的修改。然后加在下面的TABLE表格部分中:
<table id=\\\"table-1\\\"> <!-- Replace \\\"table-1\\\" with any of the design numbers --><thead><th>Name</th><th>City</th><th>Phone</th></thead><tbody><tr><td>Albert Ellis</td><td>New York</td><td>+1 718 000000</td></tr><tr><td>Marcus Aurelius</td><td>Rome</td><td>+1 718 000000</td></tr><tr><td>Epictetus</td><td>Greece</td><td>+1 718 000000</td></tr><tr><td>Aristotle</td><td>Greece</td><td>+1 718 000000</td></tr></tbody></table>这个文档中整体框架还是用的TABLE,比较适合文章内容中插入样式的部分使用。
[CSS表格]历史优惠活动内容
猜你可能想看的VPS
- ¥33.15 月 256M 内存 5G 硬盘 512G 流量 30Mbp全球[VPS测评]
- QuantumSpider→$3 月 512MB 内存 10GB SSD虚拟空间(主机)
- SoftShellWeb→$12.99 年 256MB 内存 10GB 虚拟空间(主机)
- MySQL 导入数据库提示[Err] 1286 - Unknown st全球[VPS测评]
- dedecms 获取文章完整标题全球[VPS测评]
- Justhost→俄罗斯 KVM 月付 12 元起 200M~1G 无限全球[VPS测评]
- HostKvm 七月优惠→香港国际 美国防御 VPS 限量七折优惠美国VPS[主机]
- 疯狂猜成语 图猜成语一个饼字一个几字中间有一只毛笔是什么成语?全球[VPS测评]
- QuickPacket→$40 月-E3-1270 16GB 1TB 2全球[VPS测评]
- DMIT→洛杉矶 CN2 GIA 线路 1GB 10GB 1TB 年付 全球[VPS测评]
- stsdust 广州移动大带宽 nat 预售,最高 200M 带宽 6T全球[VPS测评]
- ¥21.25 月 512M 内存 10G SSD 500G 流量 20M全球[VPS测评]
- WordPress通过根据评论数量判断是否显示评论者链接全球[VPS测评]
- RackNerd洛杉矶DC02机房补货,年付12美元起,1Gbps带宽/美国VPS[主机]
- AkkoCloud上新圣何塞CN2GIA VPS 512M内存/10G硬全球[VPS测评]
- 搬瓦工新增日本大阪软银机房 DC6 CN2 GIA-E 可转入日本机房日本VPS[主机]
- Dcloud → 10$ 月 印尼服务器 1C2G20G硬盘 不限流量全球[VPS测评]
- idc.wiki 1核心 1G内存 15G SSD 700G流量 30M全球[VPS测评]
- HKServerSolution → 2G 内存 20G HDD 2T单全球[VPS测评]
- DMIT 香港 HKG.Lite → 年付七折 半年付八折香港VPS[主机]
- 为什么大家都选择香港服务器建站香港VPS[主机]
- 云服务器能干什么?有几十种玩法?阿里云,腾讯云服务器如何购买?全球[VPS测评]
- 狗云DogYun,香港cn2云服务器/优惠码/流量包,按小时计费云服务器香港VPS[主机]
- 什么是linux面板?常见的Linux控制面板有哪些?全球[VPS测评]
- 一万网络双蛋狂欢活动:2核2G5M云服务器仅377.46元/年全球[VPS测评]
- 晚点独家丨拼多多9月上线跨境电商平台,首站美国美国VPS[主机]
- TabbyCloud:1核/1GB/20GB/2TB流量/50Mbps/香港VPS[主机]
- cmivps:香港vps终身7折,香港服务器终身9折,移动访问尤其优秀香港VPS[主机]
- 金斗云怎么样?香港CN2月付23元,圣何塞CN2月付22元香港VPS[主机]
- 柚子互联:美国洛杉矶CN2 vps,防御100G/带宽10M,28元/月美国VPS[主机]
转载请注明原文地址:http://140.238.13.167:12355/read-144578.html











