x
 
<!DOCTYPE html>
<html>
<body>
<object id="myObject" height="300" data="/i/photo/tulip.jpg" style="border:1px solid black"></object>
<p>单击按钮将 object 元素的高度更改为 400px。</p>
<button onclick="myFunction()">试一试</button>
<p id="demo"></p>
<script>
function myFunction() {
  document.getElementById("myObject").height = "400";
}
</script>
</body>
</html>