SWFObject and positioning

坚强是说给别人听的谎言 提交于 2019-12-10 13:18:37

问题


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.


回答1:


@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.




回答2:


I'd vote up or comment on stealthyninja's response, but I can't because I don't have enough rep. But yeah, you have to add another div around the "flash-to-be-replaced" div because SWFObject changes that div to an object tag or something else that CSS can't do anything about.



来源:https://stackoverflow.com/questions/4430508/swfobject-and-positioning

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!