1.textarea设置不能拉伸
style属性
<textarea style = "resize:none" rows="5" cols="5" ></textarea>
2.跨行、跨列
跨行:rowspan
跨列:colspan
一行跨两列
<tr>
<td colspan = "2" align= "center"><input type="submit" value= "提交"/></td>
</tr>
3.音频播放
方式一:
<audio src="./beidahuang.mp3" controls="controls">
</audio>
方式二:
<audio controls = "controls">
<source src="./beidahuang.mp3" type="audio/mpeg">
</audio>
4.视频播放
方式一:
<video src="./fun.mp4" width = "400" height = "400" controls= "controls"></video>
方式二:
<video width = "400" height = "400" controls= "controls" poster="hua.jpg">
<source src="./fun.mp4" type="video/mp4"></source>
</video>
方式三(自动播放):
<embed src="fun.mp4" width = "400" height = "400"/>
5.图片的加载
如果只设置宽或者高时,图片会等比例变化,如果宽和高都设置,会按照设置的值变化
<img src="hua.jpg" title="美丽的花朵" alt="图片加载失败"/>
<img src="hua.jpg" width="200" title="美丽的花朵" alt="图片加载失败"/>
<img src="hua.jpg" height="200" title="美丽的花朵" alt="图片加载失败"/>
<img src="hua.jpg" width = "100" height="200" title="美丽的花朵" alt="图片加载失败"/>
6.单选框和复选框默认选中
<input type= "radio" name = "sex" checked="checked" value = "1"/>男
<input type= "checkbox" name = "eat" checked = "checked" value = "eat"/>吃饭