有的同学希望能够让引入的视频自适应,这里提供一种方法
<script type="text/javascript">
var flash = document.getElementById("flash");
alert("宽:"+flash.width+" 高:"+flash.height);
flash.width="auto";
flash.height="auto"
</script>
有的同学希望能够让引入的视频自适应,这里提供一种方法
<script type="text/javascript">
var flash = document.getElementById("flash");
alert("宽:"+flash.width+" 高:"+flash.height);
flash.width="auto";
flash.height="auto"
</script>