Css - Table.css
基本的Table样式
- .gridtable {
- border: solid #ccc 1px;
- -moz-border-radius: 6px;
- -webkit-border-radius: 6px;
- border-radius: 6px;
- -webkit-box-shadow: 0 1px 1px #ccc;
- -moz-box-shadow: 0 1px 1px #ccc;
- box-shadow: 0 1px 1px #ccc;
- }
- .gridtable tr:hover {
- background: #fbf8e9;
- -o-transition: all 0.1s ease-in-out;
- -webkit-transition: all 0.1s ease-in-out;
- -moz-transition: all 0.1s ease-in-out;
- -ms-transition: all 0.1s ease-in-out;
- transition: all 0.1s ease-in-out;
- }
- .gridtable td, .gridtable th {
- border-left: 1px solid #ccc;
- border-top: 1px solid #ccc;
- padding: 10px;
- text-align: left;
- }
- .gridtable th {
- background-color: #dce9f9;
- background-image: -webkit-gradient(linear, left top, left bottom, from(#ebf3fc), to(#dce9f9));
- background-image: -webkit-linear-gradient(top, #ebf3fc, #dce9f9);
- background-image: -moz-linear-gradient(top, #ebf3fc, #dce9f9);
- background-image: -ms-linear-gradient(top, #ebf3fc, #dce9f9);
- background-image: -o-linear-gradient(top, #ebf3fc, #dce9f9);
- background-image: linear-gradient(top, #ebf3fc, #dce9f9);
- -webkit-box-shadow: 0 1px 0 rgba(255,255,255,.8) inset;
- -moz-box-shadow:0 1px 0 rgba(255,255,255,.8) inset;
- box-shadow: 0 1px 0 rgba(255,255,255,.8) inset;
- border-top: none;
- text-shadow: 0 1px 0 rgba(255,255,255,.5);
- }
- .gridtable td:first-child, .gridtable th:first-child {
- border-left: none;
- }
- .gridtable th:first-child {
- -moz-border-radius: 6px 0 0 0;
- -webkit-border-radius: 6px 0 0 0;
- border-radius: 6px 0 0 0;
- }
- .gridtable th:last-child {
- -moz-border-radius: 0 6px 0 0;
- -webkit-border-radius: 0 6px 0 0;
- border-radius: 0 6px 0 0;
- }
- .gridtable th:only-child{
- -moz-border-radius: 6px 6px 0 0;
- -webkit-border-radius: 6px 6px 0 0;
- border-radius: 6px 6px 0 0;
- }
- .gridtable tr:last-child td:first-child {
- -moz-border-radius: 0 0 0 6px;
- -webkit-border-radius: 0 0 0 6px;
- border-radius: 0 0 0 6px;
- }
- .gridtable tr:last-child td:last-child {
- -moz-border-radius: 0 0 6px 0;
- -webkit-border-radius: 0 0 6px 0;
- border-radius: 0 0 6px 0;
- }
- /*----------------------*/.zebra td, .zebra th {
- padding: 10px;
- border-bottom: 1px solid #f2f2f2;
- }
- .zebra tbody tr:nth-child(even) {
- background: #f5f5f5;
- -webkit-box-shadow: 0 1px 0 rgba(255,255,255,.8) inset;
- -moz-box-shadow:0 1px 0 rgba(255,255,255,.8) inset;
- box-shadow: 0 1px 0 rgba(255,255,255,.8) inset;
- }
- .zebra th {
- text-align: left;
- text-shadow: 0 1px 0 rgba(255,255,255,.5);
- border-bottom: 1px solid #ccc;
- background-color: #eee;
- background-image: -webkit-gradient(linear, left top, left bottom, from(#f5f5f5), to(#eee));
- background-image: -webkit-linear-gradient(top, #f5f5f5, #eee);
- background-image: -moz-linear-gradient(top, #f5f5f5, #eee);
- background-image: -ms-linear-gradient(top, #f5f5f5, #eee);
- background-image: -o-linear-gradient(top, #f5f5f5, #eee);
- background-image: linear-gradient(top, #f5f5f5, #eee);
- }
- .zebra th:first-child {
- -moz-border-radius: 6px 0 0 0;
- -webkit-border-radius: 6px 0 0 0;
- border-radius: 6px 0 0 0;
- }
- .zebra th:last-child {
- -moz-border-radius: 0 6px 0 0;
- -webkit-border-radius: 0 6px 0 0;
- border-radius: 0 6px 0 0;
- }
- .zebra th:only-child{
- -moz-border-radius: 6px 6px 0 0;
- -webkit-border-radius: 6px 6px 0 0;
- border-radius: 6px 6px 0 0;
- }
- .zebra tfoot td {
- border-bottom: 0;
- border-top: 1px solid #fff;
- background-color: #f1f1f1;
- }
- .zebra tfoot td:first-child {
- -moz-border-radius: 0 0 0 6px;
- -webkit-border-radius: 0 0 0 6px;
- border-radius: 0 0 0 6px;
- }
- .zebra tfoot td:last-child {
- -moz-border-radius: 0 0 6px 0;
- -webkit-border-radius: 0 0 6px 0;
- border-radius: 0 0 6px 0;
- }
- .zebra tfoot td:only-child{
- -moz-border-radius: 0 0 6px 6px;
- -webkit-border-radius: 0 0 6px 6px
- border-radius: 0 0 6px 6px
- }
Css - Table.css的更多相关文章
- css table 布局
使用CSS表格 CSS表格能够解决所有那些我们在使用绝对定位和浮动定位进行多列布局时所遇到的问题.例如,“display:table;”的CSS声明能够让一个HTML元素和它的子节点像table元素一 ...
- css+table
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/ ...
- css table 合并单元格
1. css table 合并单元格 colspan:合并列, rowspan:合并行, 合并行的时候,比如rowspan="2",它的下一行tr会少一列: 合并列的时候,比如co ...
- CSS Table(表格)
CSS Table(表格) 一.表格边框 border 指定CSS表格边框,使用border属性. 下面的例子指定了一个表格的Th和TD元素的黑色边框: table, th, td { border: ...
- css Table布局:基于display:table的CSS布局
两种类型的表格布局 你有两种方式使用表格布局 -HTML Table(<table>标签)和CSS Table(display:table 等相关属性). HTML Table是指使用原生 ...
- css table布局
表格布局有两种方式: 1.HTML Table(<table>标签)和 2. CSS Table(display:table 等相关属性). HTML Table是指使用原生的<ta ...
- 【CSS】 CSS基础知识 属性和选择
css基础知识 html的基本标签都是千篇一律的,为了能够个性化外观,就需要进行样式的调整,而css就是专门用来维护,管理样式的一种格式.在html中定义css有三种方法 1. 为标签添加style属 ...
- 【Python全栈-CSS】CSS入门
CSS入门教程 参考: http://www.cnblogs.com/yuanchenqi/articles/5977825.html http://www.ruanyifeng.com/blog/2 ...
- CSS样式----css样式表和选择器(图文详解)
本文最初于2015-10-03发表于博客园,并在GitHub上持续更新前端的系列文章.欢迎在GitHub上关注我,一起入门和进阶前端. 本文主要内容 CSS概述 CSS和HTML结合的三种方式:行内样 ...
随机推荐
- iOS7 和 iOS6的页面兼容问题
ios7 的status bar变透明了,各个bar也透明了,一个controller的view占据了整个屏幕.怎么调整呢?基本的思想是把内容的坐标下移.如果仅仅把内容的y坐标下移,那么在ios6上显 ...
- Javascript配合jQuery实现流畅的前端验证
做前端时一般都习惯用JavaScript进行表单的简单验证比如非空验证和正则表达式验证,这样过滤后的数据提交到服务端再由专门的控制器做数据处理,这样能减轻服务器的负担,下面看一下前端验证的简单步骤: ...
- poj 1625 (AC自动机好模版,大数好模版)
题目 给n个字母,构成长度为m的串,总共有n^m种.给p个字符串,问n^m种字符串中不包含(不是子串)这p个字符串的个数. 将p个不能包含的字符串建立AC自动机,每个结点用val值来标记以当前节点为后 ...
- JavaEE面试题库
Java EE软件工程师 认证考试 面试题大全 目 录 第一部分 HTML/CSS/JavaScript 1 1. HTML含义和版本变化... 1 2. ...
- plsql查询数据显示为乱码解决方法
使用plsql查询数据显示为乱码: 查看数据库编码: 通过网上搜索,发现需要设置环境变量,添加以下环境变量: LANG=zh_CN.GBK NLS_LANG="SIMPLIFIED CHIN ...
- Android涉及到的设计模式
转载地址:http://blog.csdn.net/dengshengjin2234/article/details/8502097 1.适配器模式:ListView或GridView的Adapter ...
- 基于gitosis的Git云端服务器配置
(本文需要自己实践,由于时间关系,我仅仅是做了整理和快速的练习,至于笔记中的账号和ip域名都是我参考文章中的.如果读者有任何问题欢迎留言和发邮件到luoquantao@126.com) 硬件:云端阿里 ...
- 【读书笔记】读《JavaScript设计模式》之工厂模式
一个类或对象中往往会包含别的对象.在创建这种成员对象时,你可能习惯于使用常规方式,也即用new关键字和类构造函数.问题在于这回导致相关的两个类之间产生依赖性. 工厂模式用于消除这两个类之间的依赖性,它 ...
- Linux开发cocos2dx程序环境搭建
安装linux系统,ubuntu 14.04 64位 安装支持软件 sudo apt-get update sudo apt-get install git ssh vim ctags qt-sdk ...
- 二、JavaScript语言--JS基础--JavaScript进阶篇--JS基础语法
1.变量 定义:从字面上看,变量是可变的量:从编程角度讲,变量是用于存储某种/某些数值的存储器.我们可以把变量看做一个盒子,盒子用来存放物品,物品可以是衣服.玩具.水果...等. 命名:变量名字可以任 ...