html
实例演示字体图标的用法:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
<style>table tr th {
height: 80px;
font-size: 30px;
}
table tr td img{
width: 110px;
}
table tr td {
text-align:center;
}
</style>
</head>
<body><table border="1">
<tr style="">
<th colspan="5">设计软件</th>
</tr>
<tr >
<td><img src="./icon/1.png" alt="" ></td>
<td><img src="./icon/2.png" alt=""></td>
<td><img src="./icon/3.png" alt=""></td>
<td><img src="./icon/4.png" alt=""></td>
<td><img src="./icon/5.png" alt=""></td>
</tr>
<tr>
<td>DW</td>
<td>AI</td>
<td>ID</td>
<td>PS</td>
<td>CAD</td>
</tr>
<tr>
<th colspan="4">操作系统</th>
</tr>
<tr >
<td><img src="./icon/10.png" alt="" ></td>
<td><img src="./icon/11.png" alt=""></td>
<td><img src="./icon/12.png" alt=""></td>
<td><img src="./icon/13.png" alt=""></td>
</tr>
<tr>
<td>安卓</td>
<td>IOS</td>
<td>LIUNX</td>
<td>windows</td>
</tr>
</table>
</body>
</html>
图例
布局的原则与元素的默认排列方式与元素类型
— 布局原则:从上到下;从左到右排序
— 元素默认:HTML有两种元素:行内元素和块级元素;行内元素之间可以共处一处,块级元素单独享用一行。盒模型常用属性有:margin属性(外边距),padding属性(内边距),border属性(边框)
— 实例演示
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
<style>
div{
margin: 10px;
padding: 50px;
border: 1px solid red;
width: 120px;
height: 120px;
}
</style>
</head>
<body>
<div>图形块级元素</div>
</body>
</html>
— box-sizing属性 :并排放置2个带边框的元素放在一框里面