SWFObject和定位 [英] SWFObject and positioning

查看:138
本文介绍了SWFObject和定位的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我怎样才能专门定位使用SWFObject嵌入的flash元素?
使用绝对定位和顶部和底部集合移动它的容器DIV似乎不起作用。



谢谢。

解决方案

@Francisc:Try -

 < div ID =容器DIV与 - 的定位规则> 
< div id =flash-to-be-replace>
如果用户没有安装Flash,则为备用内容
< / div>
< / div>

请注意,这可能不是最优雅的解决方案,因为它正在添加一个额外的< div> ,但之前有过同样的问题,这基本上是我解决它的方法。它可能会给你一些建树,或者其他一些参与者可能会有更好的解决方案。

How can I specifically position the flash element embeded using SWFObject please? Moving it's container DIV around with absolute positioning and top and bottom set doesn't seem to work.

Thank you.

解决方案

@Francisc: Try --

<div id="container-div-with-the-positioning-rules">
     <div id="flash-to-be-replaced">
         Your alternate content if the user doesn't have Flash installed
     </div>
</div>

Please note, this might not be the most elegant solution since it's adding an additional <div>, but having had the same problem before, this is basically how I solved it. It might give you something to build on or perhaps some of the other participants on here will have better solutions.

这篇关于SWFObject和定位的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆