如何让flash或div在任何分辨率下都水平垂直居中
本帖最后由 灰儿 于 2011-2-10 17:45 编辑示例:
如何让flash在ie中在任何分辨率下都水平垂直居中
<!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">
<head>
<title>runcode</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="Author" content="Sheneyan" />
<style type="text/css">
#dp{position:absolute;left:50%;top:50%;margin-left:-267px;margin-top:-52px;width:534px;height:104px;}
</style>
</head>
<body>
<OBJECT id=dp height=104 width=533 classid=clsid:D27CDB6E-AE6D-11cf-96B8-444553540000><PARAM NAME="_cx" VALUE="14102"><PARAM NAME="_cy" VALUE="2752"><PARAM NAME="FlashVars" VALUE=""><PARAM NAME="Movie" VALUE="http://gg.blueidea.com/2005/www/m533-104.swf"><PARAM NAME="Src" VALUE="http://gg.blueidea.com/2005/www/m533-104.swf"><PARAM NAME="WMode" VALUE="Transparent"><PARAM NAME="Play" VALUE="-1"><PARAM NAME="Loop" VALUE="-1"><PARAM NAME="Quality" VALUE="High"><PARAM NAME="SAlign" VALUE=""><PARAM NAME="Menu" VALUE="-1"><PARAM NAME="Base" VALUE=""><PARAM NAME="AllowScriptAccess" VALUE=""><PARAM NAME="Scale" VALUE="ShowAll"><PARAM NAME="DeviceFont" VALUE="0"><PARAM NAME="EmbedMovie" VALUE="0"><PARAM NAME="BGColor" VALUE=""><PARAM NAME="SWRemote" VALUE=""><PARAM NAME="MovieData" VALUE=""><PARAM NAME="SeamlessTabbing" VALUE="1"><PARAM NAME="Profile" VALUE="0"><PARAM NAME="ProfileAddress" VALUE=""><PARAM NAME="ProfilePort" VALUE="0"><PARAM NAME="AllowNetworking" VALUE="all"></OBJECT>
</body>
</html>
页:
[1]