<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<h4>图像标签的使用哦</h4>
<img src="img.jpeg"/>
<h4>alt 替换文本 图像显示不出来的时候用文字替换:</h4>
<img src="img1.jpeg" alt="我是谁"/>
<h4>alt 提示文本 鼠标放在图像上面提示的文字:</h4>
<img src="img.jpeg" alt="我是谁"title="我是?"/>
<h4>width 给图像是定宽度:</h4>
<img src="img.jpeg" alt="我是谁"title="我是?" width="500"/>
<h4>height 给图像设定高度:</h4>
<img src="img.jpeg" alt="我是谁"title="我是?" height="100"/>
<h4>border 给图像设定边框:</h4>
<img src="img.jpeg" alt="我是谁"title="我是?"border="15"/>
</body>
</html>
效果图



被折叠的 条评论
为什么被折叠?



