前端笔记第二天

meta标签属性:
charset="编码" 设置编码
设置网页关键字:
name="keywords" content="关键字"
name="description" content="网站描述"
重定向:
http-equiv="refresh" content="秒数;http://网址"
link标签:
引用样式表:
rel="stylesheet" href="样式表位置"
设置网站标题图标:
rel="icon" href="图标路径"
table标签:
border边框:值默认为0px;
tr 行 td列 th标题
给tr标签align属性值为center,表示表格内容居中
常见字符编码:
utf-8
unicode
gb2312
gbk
big5
编码->存储->解码->回显
table标签:
tr 行 td 列 th标题
tr或td的align属性值给center,表示内容居中
cellspacing="0" 取消单元格间距
border="1" 显示单元格 值默认为0
bgcolor="green" 背景颜色为绿色
cellpadding="数值" 文字与单元格边框的距离 table标签的值
caption 表头
表格基本结构:
<table>
<thead>
<tr>
<th></th>
</tr>
</thead>
<tbody>
</tbody>
<tfoot>
<tr>
<td></td>
</tr>
</tfoot>
</table>
colspan 横向合并
rowspan 纵向合并

猜你喜欢

转载自blog.51cto.com/3945465/2152893