<html>
<head>
<title>第八课标题表格</title>
<meta charset="utf-8">
</head>
<body>
<table width="960" height="250" border="1" align="center" cellpadding="10" rules="all">
<caption align="top"> 表格的标题</caption>
<tr bgcolor="#ccc" align="center" valign="center">
<th bgcolor="red" >班级</th>
<th>姓名</th>
<th>年龄</th>
<th>成绩</th>
</tr>
<tr align="center" valign="center">
<td>四年级一班</td>
<td>张三</td>
<td>16</td>
<td>80</td>
</tr>
<tr align="center" valign="center">
<td>四年级一班</td>
<td>李四</td>
<td>14</td>
<td bgcolor="#ccc"></td>
</tr>
<tr align="center" valign="center">
<td>四年级一班</td>
<td>王五</td>
<td>18</td>
<td>50</td>
</tr>
</table>
<br/>
<table width="960" height="250" border="1" align="center" cellpadding="10" rules="all">
<tr bgcolor="#ccc" align="center" valign="center">
<th bgcolor="red" >班级</th>
<th>姓名</th>
<th>年龄</th>
<th>成绩</th>
</tr>
<tr align="center" valign="center">
<td>四年级一班</td>
<td>张三</td>
<td>16</td>
<td>80</td>
</tr>
<tr align="center" valign="center">
<td>四年级一班</td>
<td>李四</td>
<td>14</td>
<td bgcolor="green">90</td>
</tr>
<tr align="center" valign="center">
<td>四年级一班</td>
<td>王五</td>
<td>18</td>
<td>50</td>
</tr>
</table>
</body>
</html>

  

<html>
<head>
<title>第八课标题网页之战布局</title>
<meta charset="utf-8">
</head>
<body leftmargin="0" topmargin="0">
<table border="0" width="960" align="center" cellspacing="0" cellpadding="0">
<tr height="90" bgcolor="red" align="center"><td><font size="6"><b>网页的头部</b></font></td></tr>
<tr>
<td>
<table bgcolor="yellow" width="30%" height="500" align="left">
<tr align="center"><td><font size="6"><b>网页的左部分</b></td></tr>
</table>
<table bgcolor="green" width="70%" height="500" align="left">
<tr align="center"><td><font size="6"><b>网页的右部分</b></td></tr>
</table>
</td>
</tr>
<tr height="90" bgcolor="red" align="center"><td><font size="6"><b>网页的底部</b></font></td></tr>
</table>
</body>
</html> 涉及的知识:
1、topmargin="0" 你设计的框架里网页上方的距离是多少0就是没有(英文翻译上边距)
2、leftmargin="0" 你设计的框架里网页左边的距离是多少0就是没有,如果居中显示就不需要左边了。(英文翻译左边距)
3、border="0"网页的边距
4、width="960"网页的宽度,也可以用百分比来计算
5、align="center"剧中显示
6、cellspacing="0" 单元格的间距
7、cellpadding="0" 单元格的边距
8、height="500"网页的高度,也可以用百分比来计算
9、<font size="6"> 可以设置字体的格式以及字体的大小
10、<b></b>字体加粗
11、<table><tr><td></td></tr></table> 表格,td是行,th是列。

  

8.html表格相关的标记9.html表格实战《简单的网页布局》的更多相关文章

  1. HTML5:表格相关标记及其属性

    表格相关标记及其属性 <table>:表格,包括以下属性 属性 说明 width 宽度(有像素和百分比两种表示方法) height 高度(有像素和百分比两种表示方法) border 边框粗 ...

  2. 复习-css列表和表格相关属性

    css列表和表格相关属性 list-style:设置所有列表属性 list-style-image:将图像设置为列表项标记,主要有url值 list-style-position:设置列表项标记的放置 ...

  3. Html网页表格结构化标记的应用

    在讲网页表格的结构化标记之前,还是先看几幅图片. Html表格的结构化 所谓的结构化,正如上述第一副图所看到的,就是把我们的表格划分为三种:表头.表体.表尾.从而当我们在改动表体部分的时候,不会影响到 ...

  4. HTML标记语法之表格元素

    语法与语义: <table>和</table>定义表格的开始和结束 <thead>和</thead>定义表格头部的开始和结束 <tbody> ...

  5. Layui表格之动态添加数据(表格多选解决方案)

    前言: Layui已经给出了多选记录的解决方案,是在每条数据的前面加上CheckBox,每次选择都有监听.效果是这样: 实现监听的代码如下,这是一种解决选择多条数据的方案: table.on('edi ...

  6. vue原生表格怎样实现动态列及表格数据下载

    最近项目经常用到带有合并效果以及动态列的表格,而翻阅iview和element-ui官网没有找到合适的(也有可能自己的水平有限,不会改写),所以只好自己用原生表格写了一个,具体效果如下: 这个表格右侧 ...

  7. 在Vue前端界面中,几种数据表格的展示处理,以及表格编辑录入处理操作。

    在Vue前端项目中,我这里主要是基于Vue+Element的开发,大多数情况下,我们利用Element的表格组件就可以满足大多数情况的要求,本篇随笔针对表格的展示和编辑处理,综合性的介绍几款表格组件的 ...

  8. excel表格中打开可以显示整个表格但是打印却只能打印一个单元格

    excel表格中打开可以显示整个表格但是打印却只能打印一个单元格 如下图显示 解决办法 2007 版菜单栏上 ----->页面布局----->打印区域----->取消打印.即可正常. ...

  9. jQuery 选择表格(table)里的行和列及改变简单样式

    本文只是介绍如何用jQuery语句对表格中行和列进行选择以及一些简单样式改变,希望它可以对jQuery表格处理的深层学习提供一些帮助jQuery对表格(table)的处理提供了相当强大的功能,比如说对 ...

随机推荐

  1. MFC获取数据的方式

    假设输入框ID是:ID_NUMBER1,ID_NUMBER2,ID_NUMBER3. 获取数据的方式是: int number1,number2,number3; number1 = GetDlgIt ...

  2. POJ-2229

    Sumsets Time Limit: 2000MS   Memory Limit: 200000K Total Submissions: 19599   Accepted: 7651 Descrip ...

  3. 《精通Spring4.X企业应用开发实战》读后感第四章(Application中Bean的生命周期)

    package com.smart.beanfactory; import org.springframework.beans.BeansException; import org.springfra ...

  4. win7 卸载ie10+ 重新安装ie8

    烦恼: erp系统不支持高版本ie10+ 项目开发测试需要安装了高版本ie 项目结束,为了方便使用erp,决定卸载ie11,重新安装ie8 解决方法: 1.win+R打开运行命令,键入appwiz.c ...

  5. LeetCode: 492 Construct the Rectangle(easy)

    题目: or a web developer, it is very important to know how to design a web page's size. So, given a sp ...

  6. Unity surface shader 2

    UV滚动 Shader "Nafio/ScrollUV" { Properties { _Tex("T",2D) = "white" {} ...

  7. poj1088(記憶化搜索)

    題目鏈接:http://poj.org/problem?id=1088 題意:中文題誒- 思路:dfs,不過直接dfs因該會超時,那我們給他加個記錄路徑就好了... 代碼: #include < ...

  8. 树状数组laekov

    lowbit 数组的第 i 位存储的是以 i 为结尾的长度为lowbit(i) 的一段的和. int lowBit(x) { return x & -x; } 加点 int n, bt[max ...

  9. echarts3.0 实例容器不实时更新页面的问题

    var instanceId = document.getElementById(option.echartId).getAttribute('_echarts3_instance_'); if (i ...

  10. python之格式化字符串( format )

    用法: 它通过 { } 和 : 来代替传统 % 方式 1.使用位置参数 要点:从以下例子可以看出位置参数不受顺序约束,且可以为 { }, 只要 format 里有相对应的参数值即可,参数索引从0开,传 ...