JS:
設置 embed 高度和寬度可以改變 flash 的高度和寬度,從而獲取。
復制代碼 代碼如下:
<!DOCTYPE HTML>
<html>
<body>
<embed src="test550X400.swf"/>
<script type="text/javascript">
var flash = document.getElementById("flash");
alert("寬:"+flash.width+" 高:"+flash.height);
</script>
</body>
</html>
新聞熱點
疑難解答
圖片精選