table标记
来源:互联网 发布:ubuntu配置jdk 编辑:程序博客网 时间:2024/06/11 06:10
<table> 标记,有如下属性:width长度、height高度、border表格边线的宽度,置为0表示无边框、background设置背景图片、bgcolor设置背景颜色、align表示对齐方式,left为左对齐,right为右对齐,center为居中
<caption> 标题标记,显示表格标题。
<th> 表头标记,有如下属性:align、background、bgcolor、colspan如colspan="3",表示该格横跨3列,rowspan如rowspan="3",表示该格横跨3行。
<tr> 行标记,属性同<th>。
<td> 列标记,属性同<th>
代码如下
<table width = "50%" height = "30%" border = "10" align = "center" bgcolor = "white"><caption align = "center"> 软件工程学生专业课成绩 </caption><tr><th colspan = "3" > 学生信息 </th><th colspan = "2"> 各科成绩 </th></tr><tr bordercolor = "red"><th> 姓名 </th> <th> 学号 </th><th> 性别 </th><th> java程序设计 </th><th> 数据结构与算法 </th></tr> <tr bordercolor = "purple"><th> 张三 </th><td align = "center"> 1 </td><td align = "center"> 男 </td><td align = "center"> 100 </td><td align = "center"> 100 </td></tr><tr bordercolor = "maroon"><th> 李四 </th><td align = "center"> 2 </td><td align = "center"> 女 </td><td align = "center"> 90 </td><td align = "center"> 90 </td></tr></table>显示结果为:
阅读全文
0 0
- table标记
- 表格(TABLE)标记(TAGS)
- 表格(TABLE)标记(TAGS)
- 表格(TABLE)标记(TAGS)
- 表格(TABLE)标记(TAGS)
- @Table标记注解
- HTML-表格(TABLE)标记(TAGS)
- HTML--表格(TABLE)标记(TAGS)
- HTML表格标记——table
- <转>Table中的几个特殊标记和属性
- 表格标记<table>属性之边框样式设置-----frame、rules
- HTML文件中表格(Table)标记的常用属性
- 标记
- 标记
- 标记
- 标记
- 标记
- 标记
- 数据库学习纪要(二):hive-2
- 字符设备驱动程序之misc_dev方式注册字符设备
- Spring Bean的生命周期
- 初识HBase
- fgets与fgetc函数
- table标记
- https实践之 抓包分析流程
- Oracle 删除用户、当前用户数据库表、表空间的过程
- JVM虚拟机调优---------垃圾收集器算法
- JDK1.8中HashMap详解
- 测试中
- L1-007. 念数字
- Java常用类之Date类
- SpringBoot-ErrorController