<!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>
<img onerror="this.src='./img/1.jpg'" src="./img/bi_ro_logo.png">
<img onerror="this.src='./img/html5.png'" src="./img/ig__logo.png">
<script>
</script>
</body>
</html>
html中的<img>的src属性取一张图片,如果取不到这张图片则默认显示另一张
最新推荐文章于 2023-09-05 11:22:57 发布