立即注册 找回密码

QQ登录

只需一步,快速开始

查看: 4607|回复: 0

分享7款颜色的CSS表格样式美化网页表格用户体验

[复制链接]
发表于 2015-8-10 13:37:16 | 显示全部楼层 |阅读模式
资源下载
资源图片:
资源类型: zencart资源模板
资源简介: 道勤小编并不是一名网页设计师,但是经常在博客上捣鼓、修改一些自认为不太好的用户体验也仅仅局限在修改一些简单的CSS样式上,遇到不能解决的问题可以通过搜索查阅文档。随着时间的积累,我们越发感觉到CSS样式的无穷奇妙,比如我们在制作某个表格时候,可以简单的利用CSS样式表的修改变化多样的CSS表格样式。在页面布局和内容分享的时候,表格是比较常用到的,有些时候道勤小编在分享评测内容的时候,为了图省事可能就直接截图,以后可能会多一些样式的分享,这样用户体验以及如果信息有变动可以直接修改,而不是再截图。
道勤网-数据www.daoqin.net

亲注册登录道勤网-可以查看更多帖子内容哦!(包涵精彩图片、文字详情等)请您及时注册登录-www.daoqin.net

您需要 登录 才可以下载或查看,没有账号?立即注册

x
道勤小编并不是一名网页设计师,但是经常在博客上捣鼓、修改一些自认为不太好的用户体验也仅仅局限在修改一些简单的CSS样式上,遇到不能解决的问题可以通过搜索查阅文档。随着时间的积累,我们越发感觉到CSS样式的无穷奇妙,比如我们在制作某个表格时候,可以简单的利用CSS样式表的修改变化多样的CSS表格样式。在页面布局和内容分享的时候,表格是比较常用到的,有些时候道勤小编在分享评测内容的时候,为了图省事可能就直接截图,以后可能会多一些样式的分享,这样用户体验以及如果信息有变动可以直接修改,而不是再截图。
在之前博文中,已经有分享过几篇关于CSS表格样式的内容:
6款漂亮HTML CSS样式用户留言表单

今天道勤小编在浏览几个海外前端博客时候,看到以下7款颜色CSS表格样式的整理还是比较好的,尤其是需要在网页中添加表格时候,看似简单的样式,但是在需要使用的时候就直接复制,节省很多时间。

第一种:

分享7款颜色的CSS表格样式美化网页表格用户体验01

分享7款颜色的CSS表格样式美化网页表格用户体验01

CSS表格样式之一

CSS样式代码部分:

  1. /* Border styles */
  2. #table-1 thead, #table-1 tr {
  3. border-top-width: 1px;
  4. border-top-style: solid;
  5. border-top-color: rgb(230, 189, 189);
  6. }
  7. #table-1 {
  8. border-bottom-width: 1px;
  9. border-bottom-style: solid;
  10. border-bottom-color: rgb(230, 189, 189);
  11. }

  12. /* Padding and font style */
  13. #table-1 td, #table-1 th {
  14. padding: 5px 10px;
  15. font-size: 12px;
  16. font-family: Verdana;
  17. color: rgb(177, 106, 104);
  18. }

  19. /* Alternating background colors */
  20. #table-1 tr:nth-child(even) {
  21. background: rgb(238, 211, 210)
  22. }
  23. #table-1 tr:nth-child(odd) {
  24. background: #FFF
  25. }
复制代码

第二种:

分享7款颜色的CSS表格样式美化网页表格用户体验02

分享7款颜色的CSS表格样式美化网页表格用户体验02


CSS表格样式之二

CSS样式代码部分:

  1. /* Border styles */
  2. #table-2 thead, #table-2 tr {
  3. border-top-width: 1px;
  4. border-top-style: solid;
  5. border-top-color: rgb(230, 189, 189);
  6. }
  7. #table-2 {
  8. border-bottom-width: 1px;
  9. border-bottom-style: solid;
  10. border-bottom-color: rgb(230, 189, 189);
  11. }

  12. /* Padding and font style */
  13. #table-2 td, #table-2 th {
  14. padding: 5px 10px;
  15. font-size: 12px;
  16. font-family: Verdana;
  17. color: rgb(177, 106, 104);
  18. }

  19. /* Alternating background colors */
  20. #table-2 tr:nth-child(even) {
  21. background: rgb(238, 211, 210)
  22. }
  23. #table-2 tr:nth-child(odd) {
  24. background: #FFF
  25. }
复制代码

第三种:

分享7款颜色的CSS表格样式美化网页表格用户体验03

分享7款颜色的CSS表格样式美化网页表格用户体验03


CSS表格样式之三

CSS样式代码部分:

  1. /* Border styles */
  2. #table-3 thead, #table-3 tr {
  3. border-top-width: 1px;
  4. border-top-style: solid;
  5. border-top-color: rgb(235, 242, 224);
  6. }
  7. #table-3 {
  8. border-bottom-width: 1px;
  9. border-bottom-style: solid;
  10. border-bottom-color: rgb(235, 242, 224);
  11. }

  12. /* Padding and font style */
  13. #table-3 td, #table-3 th {
  14. padding: 5px 10px;
  15. font-size: 12px;
  16. font-family: Verdana;
  17. color: rgb(149, 170, 109);
  18. }

  19. /* Alternating background colors */
  20. #table-3 tr:nth-child(even) {
  21. background: rgb(230, 238, 214)
  22. }
  23. #table-3 tr:nth-child(odd) {
  24. background: #FFF
  25. }
复制代码

第四种:

分享7款颜色的CSS表格样式美化网页表格用户体验04

分享7款颜色的CSS表格样式美化网页表格用户体验04


CSS表格样式之四

CSS代码样式部分:

  1. /* Border styles */
  2. #table-4 thead, #table-4 tr {
  3. border-top-width: 1px;
  4. border-top-style: solid;
  5. border-top-color: rgb(211, 202, 221);
  6. }
  7. #table-4 {
  8. border-bottom-width: 1px;
  9. border-bottom-style: solid;
  10. border-bottom-color: rgb(211, 202, 221);
  11. }

  12. /* Padding and font style */
  13. #table-4 td, #table-4 th {
  14. padding: 5px 10px;
  15. font-size: 12px;
  16. font-family: Verdana;
  17. color: rgb(95, 74, 121);
  18. }

  19. /* Alternating background colors */
  20. #table-4 tr:nth-child(even) {
  21. background: rgb(223, 216, 232)
  22. }
  23. #table-4 tr:nth-child(odd) {
  24. background: #FFF
  25. }
复制代码

第五种:

分享7款颜色的CSS表格样式美化网页表格用户体验05

分享7款颜色的CSS表格样式美化网页表格用户体验05

CSS表格样式之五

CSS代码样式部分:

  1. /* Table Head */
  2. #table-5 thead th {
  3. background-color: rgb(156, 186, 95);
  4. color: #fff;
  5. border-bottom-width: 0;
  6. }

  7. /* Column Style */
  8. #table-5 td {
  9. color: #000;
  10. }
  11. /* Heading and Column Style */
  12. #table-5 tr, #table-5 th {
  13. border-width: 1px;
  14. border-style: solid;
  15. border-color: rgb(156, 186, 95);
  16. }

  17. /* Padding and font style */
  18. #table-5 td, #table-5 th {
  19. padding: 5px 10px;
  20. font-size: 12px;
  21. font-family: Verdana;
  22. font-weight: bold;
  23. }
复制代码

第六种:


分享7款颜色的CSS表格样式美化网页表格用户体验066

分享7款颜色的CSS表格样式美化网页表格用户体验066

CSS表格样式之六

CSS样式代码部分:

  1. /* Table Head */
  2. #table-6 thead th {
  3. background-color: rgb(128, 102, 160);
  4. color: #fff;
  5. border-bottom-width: 0;
  6. }

  7. /* Column Style */
  8. #table-6 td {
  9. color: #000;
  10. }
  11. /* Heading and Column Style */
  12. #table-6 tr, #table-6 th {
  13. border-width: 1px;
  14. border-style: solid;
  15. border-color: rgb(128, 102, 160);
  16. }

  17. /* Padding and font style */
  18. #table-6 td, #table-6 th {
  19. padding: 5px 10px;
  20. font-size: 12px;
  21. font-family: Verdana;
  22. font-weight: bold;
  23. }
复制代码

第七种:

分享7款颜色的CSS表格样式美化网页表格用户体验068

分享7款颜色的CSS表格样式美化网页表格用户体验068


CSS表格样式之七

CSS样式代码部分:

  1. /* Table Head */
  2. #table-7 thead th {
  3. background-color: rgb(81, 130, 187);
  4. color: #fff;
  5. border-bottom-width: 0;
  6. }

  7. /* Column Style */
  8. #table-7 td {
  9. color: #000;
  10. }
  11. /* Heading and Column Style */
  12. #table-7 tr, #table-7 th {
  13. border-width: 1px;
  14. border-style: solid;
  15. border-color: rgb(81, 130, 187);
  16. }

  17. /* Padding and font style */
  18. #table-7 td, #table-7 th {
  19. padding: 5px 10px;
  20. font-size: 12px;
  21. font-family: Verdana;
  22. font-weight: bold;
  23. }
复制代码

以上7种颜色的CSS表格样式部分,根据我们自己的需要可以直接复制不同的颜色部分加上行列的修改。然后加在下面的TABLE表格部分中:

  1. <table id="table-1"> <!-- Replace "table-1" with any of the design numbers -->
  2. <thead>
  3. <th>Name</th>
  4. <th>City</th>
  5. <th>Phone</th>
  6. </thead>
  7. <tbody>
  8. <tr>
  9. <td>Albert Ellis</td>
  10. <td>New York</td>
  11. <td>+1 718 000000</td>
  12. </tr>
  13. <tr>
  14. <td>Marcus Aurelius</td>
  15. <td>Rome</td>
  16. <td>+1 718 000000</td>
  17. </tr>
  18. <tr>
  19. <td>Epictetus</td>
  20. <td>Greece</td>
  21. <td>+1 718 000000</td>
  22. </tr>
  23. <tr>
  24. <td>Aristotle</td>
  25. <td>Greece</td>
  26. <td>+1 718 000000</td>
  27. </tr>
  28. </tbody>
  29. </table>
复制代码

这个文档中整体框架还是用的TABLE,比较适合文章内容中插入样式的部分使用。


道勤主机提供365天*24小时全年全天无休、实时在线、零等待的售后技术支持。竭力为您免费处理您在使用道勤主机过程中所遇到的一切问题! 如果您是道勤主机用户,那么您可以通过QQ【792472177】、售后QQ【59133755】、旺旺【诠释意念】、微信:q792472177免费电话、后台提交工单这些方式联系道勤主机客服! 如果您不是我们的客户也没问题,点击页面最右边的企业QQ在线咨询图标联系我们并购买后,我们为您免费进行无缝搬家服务,让您享受网站零访问延迟的迁移到道勤主机的服务!
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关闭

道勤网- 推荐内容!上一条 /2 下一条

!jz_fbzt! !jz_sgzt! !jz_xgzt! 快速回复 !jz_fhlb! !jz_lxwm! !jz_gfqqq!

关于我们|手机版|小黑屋|地图|【道勤网】-www.daoqin.net 软件视频自学教程|免费教程|自学电脑|3D教程|平面教程|影视动画教程|办公教程|机械设计教程|网站设计教程【道勤网】 ( 皖ICP备15000319号-1 )

GMT+8, 2024-9-20 17:47

Powered by DaoQin! X3.4 © 2016-2063 Dao Qin & 道勤科技

快速回复 返回顶部 返回列表