总结4.13

框架

<iframe src="CSS1.html" frameborder="0" width="1000" height="600"></iframe>

<iframe src="表格.html" frameborder="0" width="800" height="500"></iframe>

iframe可以写在body内,通过设置宽度高度来决定网页框架所占的大小,src后面跟地址,frameborder指边缘线宽度

<a href="http://www.baidu.com"target="_top">

<a href="http://www.baidu.com"target="_parent">

_top表示直接在最底层网页打开新页面,_parent表示在父级网页打开新页面。

<html><frameset cols="40%,60%" >

<frame src="表单.html">

<frame src="index.html"></html>

也可以用这种方式做框架,但必须用html取代body,两者不能并存。

表单

<form name="seaich" action="sub.php" method="">

<input type="text" id="" name="" >

<input type="button" value="dsa">

<input type="submit" value="登录">

<input type="password" id="" name="" required/readonly>

<select>

<option>北京</option>

<option>北京</option>

<option>北京</option>

<td>内心独白:</td>

<textarea rows="5" cols="30"></textarea>

济南<input type="radio" id="" name="wl" value="0531">

济南<input type="radio" id="" name="wl" value="0531">

济南<input type="radio" id="" name="wl" value="0531">

</form>

表单以form开始,/form结束,text:普通文本框,sumbit:提交表格中的数据,password:输入的内容显示黑点(密码),button:普通按钮,required:提示必须填写改框后才能提交,readonly:只读,不可修改,placeholder:占位符,可以提示要填写什么内容。

Select为下拉列表,用option的格式表示下拉列表的选项

Redio为单选按钮,使name相同的选项间互斥;checkbox为多项选择。

Textarea可以通过设置宽高来使输入的内容有条理的换行

注意:用户提交的是value的值

原文地址:https://www.cnblogs.com/HighKK/p/12691983.html