惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Hugging Face - Blog
Hugging Face - Blog
Stack Overflow Blog
Stack Overflow Blog
量子位
腾讯CDC
N
Netflix TechBlog - Medium
aimingoo的专栏
aimingoo的专栏
小众软件
小众软件
S
SegmentFault 最新的问题
A
About on SuperTechFans
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
T
Tailwind CSS Blog
G
Google Developers Blog
U
Unit 42
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
雷峰网
雷峰网
罗磊的独立博客
Vercel News
Vercel News
L
LangChain Blog
V
V2EX
P
Proofpoint News Feed
M
MIT News - Artificial intelligence
博客园 - Franky
V
Visual Studio Blog
J
Java Code Geeks

博客园 - 快乐家++

QMT A股 量化程序开发资料 通过 PyWenCai 模块采集问财涨停数据的例子 均线粘合 【通达信】 MS-SQL事务处理语句 SQL Update:使用一个表的数据更新另一张表 CefSharp 使用备忘录 IIS7 伪静态 web.config 配置方法 针对不同.NET版本的条件编译 将Json数据 填充到 实例类 的函数 带查询参数 可分页 的 T-SQL 语句写法 JavaScript 版本的 RSA加密库文件 电工葵花宝典 一开关接线方法 c# 执行javascript 脚本 HttpWebRequest出错 服务器提交了协议冲突. Section=ResponseHeader Detail=CR 后面必须是 LF 秒转换成时分秒 SQL2008中Merge的用法 C#将exe运行程序嵌入到自己的winform窗体中 如何让用户只能访问特定的数据库(MSSQL) 委托、回调 Lambda表达式书写方式
当鼠标经过表格数据行时颜色不同且奇偶行颜色也不同 (纯CSS)
快乐家++ · 2017-10-01 · via 博客园 - 快乐家++

<!DOCTYPE html> 
<!-- 
To change this license header, choose License Headers in Project Properties. 
To change this template file, choose Tools | Templates 
and open the template in the editor. 
--> 
<html> 
<head> 
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" /> 

<title>table test</title> 
 <style> 
 
/* 
To change this license header, choose License Headers in Project Properties. 
To change this template file, choose Tools | Templates 
and open the template in the editor. 
*/ 
/* 
Created on : 2014-7-9, 14:24:31 
Author : Administrator 
*/ 
body{ margin:0 auto; text-align:center} 
/*设置表头的margin为0则表居中显示,border为0则无边界*/ 
table{margin:0 auto; 
border:0px; 
solid:#000 
} 
/*设置th表头的属性,font-weight为bold则显示为黑粗*/ 
table tr th{ height:28px; 
width: auto; 
line-height:28px; 
background:#999; 
font-weight:bold 
} 
table tbody tr{ 
height:28px; 
line-height:28px; 
text-align:center; 
background:#FFF; 
vertical-align:middle; 
} 
/* 
*设置鼠标经过颜色的变化 
*/ 
/*采用csss的这个方法,获得奇数行,让后设置其属性,这样避免使用expression这个容易出错的方法*/ 
table tbody tr:nth-child(odd){ 
background-color: #DEDEDE 
} 

table tbody tr:hover{ 
background-color: #CCCCCC; 
} 
</style> 
</head> 
<body> 
<table> 
<tr> 
<th>姓名</th> 
<th>性别</th> 
<th>班级</th> 
</tr> 
<tbody> 
<tr> 
<td>姓名</td> 
<td>男</td> 
<td>计算机科学与技术一班</td> 
</tr> 
<tr> 
<td>段萌</td> 
<td>男</td> 
<td>软工一班</td> 
</tr> 
<tr> 
<td>段萌</td> 
<td>男</td> 
<td>软工一班</td> 
</tr> 
<tr> 
<td>段萌</td> 
<td>男</td> 
<td>软工一班</td> 
</tr> 
<tr> 
<td>段萌</td> 
<td>男</td> 
<td>软工一班</td> 
</tr> 
</tbody> 
</table> 
</body> 
</html>