html笔记3

继续记录

继续上次的img标签

<html>
<body style="font-famliy:arial">
<img src="1.jpg" width="20" height="20" align="left">
<div style="color:red">
<p>图片尺度设置与上下左右位置调整</p>
<img src="xxx.jpg" align="bottom">
<img src="xxx.jpg" align="top">
</div>
</body>
</html>

table标签

<html>
<body style="font-famliy:arial;font-size:30px">
<div style="color:red">
<table border="1">
<tr>
<th>表格头用th标签显示</th>
<td>表格数据用td标签</td>
</th>
</tr>
</table>
<!--------------------------------------------------->
<p>表头</p>
<table border="1">
<tr>
<th>姓名</th>
<th>班级</th>
</tr>
<tr>
<td>剑神</td>
<td>剑之所</td>
</tr>
</table>
<!--------------------------------------------------------->
<p>垂直的表头</p>
<table border="1">
<tr>
<th>车</th>
<td>ou</th>
</tr>
</table>
</body>
</html>

  

原文地址:https://www.cnblogs.com/haq5201314/p/7624635.html