x
 
<!DOCTYPE html>
<html>
<body>
<p>单击该按钮可创建嵌入图片的 EMBED 元素。</p>
<button onclick="myFunction()">试一试</button>
<br><br>
<script>
function myFunction() {
  var x = document.createElement("EMBED");
  x.setAttribute("src", "/i/photo/tree.png");
  document.body.appendChild(x);
}
</script>
</body>
</html>