此外发现这个写法。
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" lang="zh-CN" xml:lang="zh-CN"> <head> <title>index</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <script type="text/javascript" src="js/swfobject.js"></script> <script type="text/javascript" src="js/swfaddress.js"></script> <script type="text/javascript" src="js/swffit.js"></script> <style type="text/css" media="screen"> html, body, body.sidebars { width:100%; height:700px; margin:0; padding:0; } object { outline:none; } </style> </head> <body> <div id="websiteid"> <script type="text/javascript"> var flashvars = {}; var params = {quality: "high",wmode: "window",allowFullScreen: "true",devicefont: "false",allowscriptaccess: "always",scale: "noScale", salign: "mt",menu: "false"}; var attributes = {id: "flash"}; swfobject.embedSWF("index.swf", "websiteid", "100%", "768px", "9.0.0","expressInstall.swf", flashvars, params, attributes); swffit.fit("flash",1024,768); </script> </div> </body> </html>