PHP(5)只记录我的学习历程 html(表格标志)
2015-01-09 10:39
351 查看
<html> <span style="white-space:pre"> </span><meta content="utf-8"> <span style="white-space:pre"> </span><head> <span style="white-space:pre"> </span><title style="color:red">表格标志</title> <span style="white-space:pre"> </span></head> <span style="white-space:pre"> </span><body> <!--创建一个表格<bgcolor背景颜色>border边框大小,bordercolor边框颜色,bordercolorlight边框颜色明亮部分border大于1有效bordercolordark边框颜色昏暗部分border大于1才有效,cellspacing设置表格之间空间的大小,cellpadding设置表格边框及其内部内容之间的空间的大小,width设置表格的宽度也可以去总宽度的百分比--> <span style="white-space:pre"> </span><table border="1" width="80%" bgcolor="yellow" cellpadding="2" bordercolor="#0000FF" bordercolorlight="#7D7DFF" bordercolordark="#0000A0"> <!--<tr标签创建一个表>--> <span style="white-space:pre"> </span><tr> <span style="white-space:pre"> </span><th width="33%" colspan="2" valign="bottom">意大利</th> <span style="white-space:pre"> </span><th width="36%" colspan="2" valign="bottom">英格兰</th> <span style="white-space:pre"> </span><th width="36%" colspan="2" valign="bottom">西班牙</th> <span style="white-space:pre"> </span></tr> <!--第二行--> <span style="white-space:pre"> </span><tr> <span style="white-space:pre"> </span><td width="16%" rowspan="3" align="center">AC米兰</th> <span style="white-space:pre"> </span><td width="16%" align="center">佛罗伦萨</th> <span style="white-space:pre"> </span><td width="17%" align="center">曼联</th> <span style="white-space:pre"> </span><td width="17%" align="center">纽卡斯尔</th> <span style="white-space:pre"> </span><td width="17%" align="center">巴塞罗纳</th> <span style="white-space:pre"> </span><td width="17%" align="center">皇家社会</th> <span style="white-space:pre"> </span></tr> <span style="white-space:pre"> </span><tr> <span style="white-space:pre"> </span><td width="16%" align="center">佛罗伦萨</th> <span style="white-space:pre"> </span><td width="17%" align="center">曼联</th> <span style="white-space:pre"> </span><td width="17%" align="center">纽卡斯尔</th> <span style="white-space:pre"> </span><td width="17%" align="center">巴塞罗纳</th> <span style="white-space:pre"> </span><td width="17%" align="center">皇家社会</th> <span style="white-space:pre"> </span></tr> <span style="white-space:pre"> </span><tr> <span style="white-space:pre"> </span><td width="16%" align="center">佛罗伦萨</th> <span style="white-space:pre"> </span><td width="17%" align="center">曼联</th> <span style="white-space:pre"> </span><td width="17%" align="center">纽卡斯尔</th> <span style="white-space:pre"> </span><td width="17%" align="center">巴塞罗纳</th> <span style="white-space:pre"> </span><td width="17%" align="center">皇家社会</th> <span style="white-space:pre"> </span></tr> <span style="white-space:pre"> </span></table> <span style="white-space:pre"> </span></body> </html>
学习的标签有如下
1.<table>....<table>表标签作用为创建一张表属性上边代码的注释有
2.<tr>...</tr>创建表格中的一行有2个属性 align水平对齐拥有left,center,right valign垂直对齐拥有top,middle,bottom属性
3.<td>...</td>创建一行中的一个单元格拥有如下属性with宽度,colspan占有多少列, rowspan占有多少行,nowarp禁止自动断行
4<th>...</th>用来设置表格头
相关文章推荐
- PHP(3)只记录我的学习历程 html(文本标志)
- PHP(6)只记录我的学习历程 html(链接和框架标志)
- PHP(6)只记录我的学习历程 html(表单标志)
- PHP(4)只记录我的学习历程 html(图片标志)
- PHP(2)只记录我的学习历程
- HTML学习记录<六> :表格
- html学习记录之表格、表单基础
- HTML学习记录之HTML组成原理 PHP学习铺垫
- PHP学习第七节---- PHP结合HTML打印表格
- 隔了N年重新写博客,为了记录自己重新学习Html历程
- HTML学习记录之HTML组成原理 PHP学习铺垫
- 学习历程之HTML四(表格)
- php开发----学习历程记录(0.起步)
- 当某个表中存在标志表格中记录不同状态的判断性字段的时候,采用两种不同的数据库组织形式,查询执行速度的实验。
- 开始记录我的学习历程
- HTML学习记录(高级)
- ListCtrl使用详解——我的表格控件学习历程
- PHP的学习历程
- 从今天开始使用csdn的blog开始记录学习历程
- 从今天开始,记录自己的学习历程!