基本的Table样式

  1. .gridtable {
  2. border: solid #ccc 1px;
  3. -moz-border-radius: 6px;
  4. -webkit-border-radius: 6px;
  5. border-radius: 6px;
  6. -webkit-box-shadow: 0 1px 1px #ccc;
  7. -moz-box-shadow: 0 1px 1px #ccc;
  8. box-shadow: 0 1px 1px #ccc;
  9. }
  10.  
  11. .gridtable tr:hover {
  12. background: #fbf8e9;
  13. -o-transition: all 0.1s ease-in-out;
  14. -webkit-transition: all 0.1s ease-in-out;
  15. -moz-transition: all 0.1s ease-in-out;
  16. -ms-transition: all 0.1s ease-in-out;
  17. transition: all 0.1s ease-in-out;
  18. }
  19.  
  20. .gridtable td, .gridtable th {
  21. border-left: 1px solid #ccc;
  22. border-top: 1px solid #ccc;
  23. padding: 10px;
  24. text-align: left;
  25. }
  26.  
  27. .gridtable th {
  28. background-color: #dce9f9;
  29. background-image: -webkit-gradient(linear, left top, left bottom, from(#ebf3fc), to(#dce9f9));
  30. background-image: -webkit-linear-gradient(top, #ebf3fc, #dce9f9);
  31. background-image: -moz-linear-gradient(top, #ebf3fc, #dce9f9);
  32. background-image: -ms-linear-gradient(top, #ebf3fc, #dce9f9);
  33. background-image: -o-linear-gradient(top, #ebf3fc, #dce9f9);
  34. background-image: linear-gradient(top, #ebf3fc, #dce9f9);
  35. -webkit-box-shadow: 0 1px 0 rgba(255,255,255,.8) inset;
  36. -moz-box-shadow:0 1px 0 rgba(255,255,255,.8) inset;
  37. box-shadow: 0 1px 0 rgba(255,255,255,.8) inset;
  38. border-top: none;
  39. text-shadow: 0 1px 0 rgba(255,255,255,.5);
  40. }
  41.  
  42. .gridtable td:first-child, .gridtable th:first-child {
  43. border-left: none;
  44. }
  45.  
  46. .gridtable th:first-child {
  47. -moz-border-radius: 6px 0 0 0;
  48. -webkit-border-radius: 6px 0 0 0;
  49. border-radius: 6px 0 0 0;
  50. }
  51.  
  52. .gridtable th:last-child {
  53. -moz-border-radius: 0 6px 0 0;
  54. -webkit-border-radius: 0 6px 0 0;
  55. border-radius: 0 6px 0 0;
  56. }
  57.  
  58. .gridtable th:only-child{
  59. -moz-border-radius: 6px 6px 0 0;
  60. -webkit-border-radius: 6px 6px 0 0;
  61. border-radius: 6px 6px 0 0;
  62. }
  63.  
  64. .gridtable tr:last-child td:first-child {
  65. -moz-border-radius: 0 0 0 6px;
  66. -webkit-border-radius: 0 0 0 6px;
  67. border-radius: 0 0 0 6px;
  68. }
  69.  
  70. .gridtable tr:last-child td:last-child {
  71. -moz-border-radius: 0 0 6px 0;
  72. -webkit-border-radius: 0 0 6px 0;
  73. border-radius: 0 0 6px 0;
  74. }
  75.  
  76. /*----------------------*/.zebra td, .zebra th {
  77. padding: 10px;
  78. border-bottom: 1px solid #f2f2f2;
  79. }
  80.  
  81. .zebra tbody tr:nth-child(even) {
  82. background: #f5f5f5;
  83. -webkit-box-shadow: 0 1px 0 rgba(255,255,255,.8) inset;
  84. -moz-box-shadow:0 1px 0 rgba(255,255,255,.8) inset;
  85. box-shadow: 0 1px 0 rgba(255,255,255,.8) inset;
  86. }
  87.  
  88. .zebra th {
  89. text-align: left;
  90. text-shadow: 0 1px 0 rgba(255,255,255,.5);
  91. border-bottom: 1px solid #ccc;
  92. background-color: #eee;
  93. background-image: -webkit-gradient(linear, left top, left bottom, from(#f5f5f5), to(#eee));
  94. background-image: -webkit-linear-gradient(top, #f5f5f5, #eee);
  95. background-image: -moz-linear-gradient(top, #f5f5f5, #eee);
  96. background-image: -ms-linear-gradient(top, #f5f5f5, #eee);
  97. background-image: -o-linear-gradient(top, #f5f5f5, #eee);
  98. background-image: linear-gradient(top, #f5f5f5, #eee);
  99. }
  100.  
  101. .zebra th:first-child {
  102. -moz-border-radius: 6px 0 0 0;
  103. -webkit-border-radius: 6px 0 0 0;
  104. border-radius: 6px 0 0 0;
  105. }
  106.  
  107. .zebra th:last-child {
  108. -moz-border-radius: 0 6px 0 0;
  109. -webkit-border-radius: 0 6px 0 0;
  110. border-radius: 0 6px 0 0;
  111. }
  112.  
  113. .zebra th:only-child{
  114. -moz-border-radius: 6px 6px 0 0;
  115. -webkit-border-radius: 6px 6px 0 0;
  116. border-radius: 6px 6px 0 0;
  117. }
  118.  
  119. .zebra tfoot td {
  120. border-bottom: 0;
  121. border-top: 1px solid #fff;
  122. background-color: #f1f1f1;
  123. }
  124.  
  125. .zebra tfoot td:first-child {
  126. -moz-border-radius: 0 0 0 6px;
  127. -webkit-border-radius: 0 0 0 6px;
  128. border-radius: 0 0 0 6px;
  129. }
  130.  
  131. .zebra tfoot td:last-child {
  132. -moz-border-radius: 0 0 6px 0;
  133. -webkit-border-radius: 0 0 6px 0;
  134. border-radius: 0 0 6px 0;
  135. }
  136.  
  137. .zebra tfoot td:only-child{
  138. -moz-border-radius: 0 0 6px 6px;
  139. -webkit-border-radius: 0 0 6px 6px
  140. border-radius: 0 0 6px 6px
  141. }

Css - Table.css的更多相关文章

  1. css table 布局

    使用CSS表格 CSS表格能够解决所有那些我们在使用绝对定位和浮动定位进行多列布局时所遇到的问题.例如,“display:table;”的CSS声明能够让一个HTML元素和它的子节点像table元素一 ...

  2. css+table

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/ ...

  3. css table 合并单元格

    1. css table 合并单元格 colspan:合并列, rowspan:合并行, 合并行的时候,比如rowspan="2",它的下一行tr会少一列: 合并列的时候,比如co ...

  4. CSS Table(表格)

    CSS Table(表格) 一.表格边框 border 指定CSS表格边框,使用border属性. 下面的例子指定了一个表格的Th和TD元素的黑色边框: table, th, td { border: ...

  5. css Table布局:基于display:table的CSS布局

    两种类型的表格布局 你有两种方式使用表格布局 -HTML Table(<table>标签)和CSS Table(display:table 等相关属性). HTML Table是指使用原生 ...

  6. css table布局

    表格布局有两种方式: 1.HTML Table(<table>标签)和 2. CSS Table(display:table 等相关属性). HTML Table是指使用原生的<ta ...

  7. 【CSS】 CSS基础知识 属性和选择

    css基础知识 html的基本标签都是千篇一律的,为了能够个性化外观,就需要进行样式的调整,而css就是专门用来维护,管理样式的一种格式.在html中定义css有三种方法 1. 为标签添加style属 ...

  8. 【Python全栈-CSS】CSS入门

    CSS入门教程 参考: http://www.cnblogs.com/yuanchenqi/articles/5977825.html http://www.ruanyifeng.com/blog/2 ...

  9. CSS样式----css样式表和选择器(图文详解)

    本文最初于2015-10-03发表于博客园,并在GitHub上持续更新前端的系列文章.欢迎在GitHub上关注我,一起入门和进阶前端. 本文主要内容 CSS概述 CSS和HTML结合的三种方式:行内样 ...

随机推荐

  1. iOS7 和 iOS6的页面兼容问题

    ios7 的status bar变透明了,各个bar也透明了,一个controller的view占据了整个屏幕.怎么调整呢?基本的思想是把内容的坐标下移.如果仅仅把内容的y坐标下移,那么在ios6上显 ...

  2. Javascript配合jQuery实现流畅的前端验证

    做前端时一般都习惯用JavaScript进行表单的简单验证比如非空验证和正则表达式验证,这样过滤后的数据提交到服务端再由专门的控制器做数据处理,这样能减轻服务器的负担,下面看一下前端验证的简单步骤: ...

  3. poj 1625 (AC自动机好模版,大数好模版)

    题目 给n个字母,构成长度为m的串,总共有n^m种.给p个字符串,问n^m种字符串中不包含(不是子串)这p个字符串的个数. 将p个不能包含的字符串建立AC自动机,每个结点用val值来标记以当前节点为后 ...

  4. JavaEE面试题库

    Java EE软件工程师 认证考试 面试题大全 目  录 第一部分  HTML/CSS/JavaScript 1 1.              HTML含义和版本变化... 1 2.         ...

  5. plsql查询数据显示为乱码解决方法

    使用plsql查询数据显示为乱码: 查看数据库编码: 通过网上搜索,发现需要设置环境变量,添加以下环境变量: LANG=zh_CN.GBK NLS_LANG="SIMPLIFIED CHIN ...

  6. Android涉及到的设计模式

    转载地址:http://blog.csdn.net/dengshengjin2234/article/details/8502097 1.适配器模式:ListView或GridView的Adapter ...

  7. 基于gitosis的Git云端服务器配置

    (本文需要自己实践,由于时间关系,我仅仅是做了整理和快速的练习,至于笔记中的账号和ip域名都是我参考文章中的.如果读者有任何问题欢迎留言和发邮件到luoquantao@126.com) 硬件:云端阿里 ...

  8. 【读书笔记】读《JavaScript设计模式》之工厂模式

    一个类或对象中往往会包含别的对象.在创建这种成员对象时,你可能习惯于使用常规方式,也即用new关键字和类构造函数.问题在于这回导致相关的两个类之间产生依赖性. 工厂模式用于消除这两个类之间的依赖性,它 ...

  9. Linux开发cocos2dx程序环境搭建

    安装linux系统,ubuntu 14.04 64位 安装支持软件 sudo apt-get update sudo apt-get install git ssh vim ctags qt-sdk ...

  10. 二、JavaScript语言--JS基础--JavaScript进阶篇--JS基础语法

    1.变量 定义:从字面上看,变量是可变的量:从编程角度讲,变量是用于存储某种/某些数值的存储器.我们可以把变量看做一个盒子,盒子用来存放物品,物品可以是衣服.玩具.水果...等. 命名:变量名字可以任 ...