精通 CSS+DIV 网页样式与布局 63
2016-12-06 10:44
435 查看
人生如梦<br>一尊还酹江月<br>
</div>
</body>
</html>
<html>
<head>
<title>年度收入</title>
<style>
<!–
body{
background-color:#ebf5ff; /* 页面背景色 */
margin:0px; padding:4px;
text-align:center; /* 居中对齐(IE 有效) */
}
.datalist{
color:#0046a6; /* 表格文字颜色 */
background-color:#d2e8ff; /* 表格背景色 */
font-family:Arial; /* 表格字体 */
}
.datalist caption{
font-size:18px; /* 标题文字大小 */
font-weight:bold; /* 标题文字粗体 */
}
.datalist th{
color:#003e7e; /* 行、列名称颜色 */
background-color:#7bb3ff; /* 行、列名称的背景色 */
}
–>
</style>
</head>
<body>
<table summary=”This table shows the yearly income for years 2004 through 2007”
border=”1” class=”datalist”>
<caption>年度收入 2004 - 2007</caption>
<tr>
<th></th>
<th scope=”col”>2004</th>
<th scope=”col”>2005</th>
<th scope=”col”>2006</th>
</div>
</body>
</html>
<html>
<head>
<title>年度收入</title>
<style>
<!–
body{
background-color:#ebf5ff; /* 页面背景色 */
margin:0px; padding:4px;
text-align:center; /* 居中对齐(IE 有效) */
}
.datalist{
color:#0046a6; /* 表格文字颜色 */
background-color:#d2e8ff; /* 表格背景色 */
font-family:Arial; /* 表格字体 */
}
.datalist caption{
font-size:18px; /* 标题文字大小 */
font-weight:bold; /* 标题文字粗体 */
}
.datalist th{
color:#003e7e; /* 行、列名称颜色 */
background-color:#7bb3ff; /* 行、列名称的背景色 */
}
–>
</style>
</head>
<body>
<table summary=”This table shows the yearly income for years 2004 through 2007”
border=”1” class=”datalist”>
<caption>年度收入 2004 - 2007</caption>
<tr>
<th></th>
<th scope=”col”>2004</th>
<th scope=”col”>2005</th>
<th scope=”col”>2006</th>
相关文章推荐
- Web布局连载——两栏固定布局(五)
- [div+css]晒晒最新制作专题推广页模板
- 盒子模型
- CSS选择器
- CSS样式优先权
- [css] line-height 百分比单位和数值单位的区别
- css如何搞正方形
- Apple官网研究之使用Justify布局导航
- 关于前端的思考与感悟
- rem : web app适配的秘密武器
- jquery高级应用之Deferred对象
- 移动端点击事件全攻略,这里的坑你知多少?
- $q 实例分析 Angular 中的 Promise
- 浏览器中唤起native app || 跳转到应用商城下载
- Angular directive 实例详解
- 关于浮动与清除浮动,你应该知道的
- 数组reduce方法的高级技巧
- div 2 列 50%宽度布局