html 表格样式
2015-11-12 09:58
603 查看
<!doctype html> <html lang="en"> <head> <meta charset="UTF-8"> <title>表格样式</title> <style type="text/css"> .tablelist { font-family: 微软雅黑,verdana,arial,sans-serif; font-size:12px; color:#333333; border:solid 1px #999999; border-collapse: collapse; margin:auto; } .tablelist th { background-color:#c3dde0; padding: 8px; border:solid 1px #a9c6c9; } .tablelist tr { background-color:#d4e3e5; } .tablelist td { padding: 8px; border:solid 1px #a9c6c9; } </style> </head> <body> <table class="tablelist"> <tr> <th>Info Header 1</th><th>Info Header 2</th><th>Info Header 3</th> </tr> <tr onmouseover="this.style.backgroundColor='silver';" onmouseout="this.style.backgroundColor='#d4e3e5';"> <td>Item 1A</td><td>Item 1B</td><td>Item 1C</td> </tr> <tr onmouseover="this.style.backgroundColor='silver';" onmouseout="this.style.backgroundColor='#d4e3e5';"> <td>Item 2A</td><td>Item 2B</td><td>Item 2C</td> </tr> <tr onmouseover="this.style.backgroundColor='silver';" onmouseout="this.style.backgroundColor='#d4e3e5';"> <td>Item 3A</td><td>Item 3B</td><td>Item 3C</td> </tr> <tr onmouseover="this.style.backgroundColor='silver';" onmouseout="this.style.backgroundColor='#d4e3e5';"> <td>Item 4A</td><td>Item 4B</td><td>Item 4C</td> </tr> <tr onmouseover="this.style.backgroundColor='silver';" onmouseout="this.style.backgroundColor='#d4e3e5';"> <td>Item 5A</td><td>Item 5B</td><td>Item 5C</td> </tr> </table> </body> </html>
相关文章推荐
- HTML,CSS,font-family:中文字体的英文名称 (宋体 微软雅黑)
- CSS 谷歌浏览器字体最小 font-size:12px
- CSS 设置字体环绕图片效果
- css样式表
- CSS3--阴影,渐变,背景图片
- flex
- CSS三栏布局(两边固定中间自适应宽度)的方法
- 安卓样式Style和主题Theme
- 【转载】CSS常用英文字体介绍
- div+css滚动条
- CSS 属性的默认值
- 4种CSS样式方式
- DIV+CSS如何让文字垂直居中
- gulp 之一 安装及简单CSS,JS文件合并压缩
- CSS属性之Overflow
- css导航栏
- css3制作翘边阴影
- Bootstar常用样式表
- css基础
- Less CSS框架的简介