SWF对象和定位
请问如何具体定位使用 SWFObject 嵌入的 Flash 元素? 使用绝对定位和顶部和底部设置来移动它的容器 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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
@Francisc:尝试 -
请注意,这可能不是最优雅的解决方案,因为它添加了额外的
,但之前也遇到过同样的问题,这基本上就是我解决它的方法。它可能会给您一些可以借鉴的东西,或者这里的其他一些参与者可能会有更好的解决方案。
@Francisc: Try --
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.我会投票赞成或评论 Stealthyninja 的回应,但我不能,因为我没有足够的代表。但是,是的,您必须在“flash-to-be-replaced”div 周围添加另一个 div,因为 SWFObject 将该 div 更改为对象标记或 CSS 无法执行任何操作的其他内容。
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.