表格的布局、完善、表单
2019-12-19 本文已影响0人
Agony_锐
表格布局:

完善:
1、子元素和父元素相邻的垂直外边距会发生重叠,子元素的外边距会传递给父元素
2、使用空的table标签可以隔离父子元素的外边距,阻止外边距的重叠
3、

4、

表单:
文本框 <input type="text" name="name">
密码框 <input type="password" name="pwd">
多选框 <input type="checkbox" name="sports">
单选框 <input type="radio" name="gender">
提交按钮 <input type="submit" value="提交">
下拉列表 <select>
下拉列表的下一项
<option>北京</option>
</select>
服务器地址 <form action="demo075_target.html">
value:默认值,输入时默认值还是会显示
placeholder:提示文字,效果和登录QQ密码提示一样
如何确定是一组:name属性一样
默认选中:checked="checked"

