找回密码
 注册
首页 ≡≡网络技术≡≡ WEB前端 如何让flash或div在任何分辨率下都水平垂直居中 ...

如何让flash或div在任何分辨率下都水平垂直居中

灰儿 2011-2-10 17:44:43
本帖最后由 灰儿 于 2011-2-10 17:45 编辑

示例:
  1. 如何让flash在ie中在任何分辨率下都水平垂直居中

  2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  3. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  4. <html xmlns="http://www.w3.org/1999/xhtml">
  5. <head>
  6. <title>runcode</title>
  7. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  8. <meta name="Author" content="Sheneyan" />
  9. <style type="text/css">
  10. #dp{position:absolute;left:50%;top:50%;margin-left:-267px;margin-top:-52px;width:534px;height:104px;}
  11. </style>
  12. </head>
  13. <body>
  14. <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>
  15. </body>
  16. </html>
复制代码

您需要登录后才可以回帖 登录 | 注册
学习中心
站长自定义文字内容,利用碎片时间,随时随地获取优质内容。
Q设计语言 了解更多
Q Design 提供商家设计所需的指导与资源,帮商家快速完成产品设计、降低生产成本。
学习中心
站长自定义文字内容,利用碎片时间,随时随地获取优质内容。
Q设计语言 了解更多
Q Design 提供商家设计所需的指导与资源,帮商家快速完成产品设计、降低生产成本。