1、表格

<table>

    <tr>

        <td>

        </td>

    </tr>

</table>

2、表格属性

边缘 border 水平对齐 align  宽度 width  高度 height  

单元格与单元格距离  cellspacing

单元格内容距离单元边框的距离  cellpadding

三参为0  border cellspacing cellpadding

3、表头标签(文本加粗并居中)

<th></th>

<th></th>

<th></th>

4、表格标题

紧随table之后

<caption>表格标题</caption>

5、快捷键

快速复制 ctrl+shift+d   去掉文本 双击文本

6、表格结构

<thead></thead><tbody></tbody> 

7、合并单元格

跨行合并rowspan,跨列合并colspan

先上后下,先左后右,删除个数=合并个数-1

8、表单(input)

表单:表单控件,提示信息,表单域

html day 2

radio如果是一组,必须命名相同的名字name,多个选一个

单选或多选固定选项 checked=checked

9、label

用于绑定表单元素,点击label标签,输入焦点

<label for="male">Male</label>

<input type="radio" name="sex" id="male" value="male">

10、textarea(文本域)

<textarea name="" id="" cols="" rows=""></textarea>

11、下拉表单

<select>

  <option value="">选择年份</option>

  <option value="">1990</option>

</select>

固定选项 selected=selected

12、表单域

<form action="url地址"  method="提交方式"  name="表单名称">

</form>

action提交到目标文件  

method=get地址栏显示文本信息

method=post匿名提交





相关文章:

  • 2021-08-13
  • 2021-10-06
  • 2021-09-24
  • 2021-10-09
  • 2021-10-30
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-12-09
  • 2022-01-11
  • 2021-04-25
  • 2021-06-19
相关资源
相似解决方案