当前位置: 代码迷 >> 综合 >> 6.1 html标签
  详细解决方案

6.1 html标签

热度:53   发布时间:2023-09-19 16:30:42.0

1.

<iframe>

Iframe 有什么好处,有什么坏处?

frameborder:是否显示边框 0不显示

name:跟<a></a>结合使用

例:

<iframe name=xxx frameborder=‘0’></iframe>

<a target=xxx href='baidu.com'>百度</a>

解释:点击百度,在iframe标签内,打开百度页面

 

2.

<a></a>GET请求

target:_blank(空页面打开),_self(当前页面打开),_parent(父类页面打开),_top(顶层窗口打开)

download:下载

href:

 1.#xxx  ?name=names  ./index.html

 2.伪协议  javascript:;

 3. //qq.com(无协议)

 

3.

<form>POST请求   

input没有子元素    空标签

type:text password checkbox  radio button  number tel  submit 

name(作为第四部分,发送给服务器)

target:同a标签

form内如果没有提交按钮,但是有button,点击button会提交。

<input type=' checkbox' id='xxx'><label for='xxx'>选择</label>

点击选择,就等于点input

或者  label标签包裹住input标签,想过相同

<label><input type=' checkbox' id='xxx'></label> 

<select name='' multiple(下拉框,多选)>

 <option value=''>可以选择</option>

 <option value=''>可以选择</option>

 <option value='' selected>默认选择</option>

 <option value='' disabled>不能选择</option>

</select>

<textarea style='resize:none;'>多文本框</textarea>

 

4.

<table> 

<colgroup><col>

   <thead>

th th表头

   </thead>

<tbody>

   tr  td 内容,数据

</tbody>

<tfoot>

<table> 

 

  相关解决方案