I have a problem positioning a Flash element inside a div tag. The problem is, that the flash element is changing it's size based on the user input. I need a way how I can dynamically get the actual size of the flash element, and to change the behavior of the div element the flash is integrated in. actually I want to place it in the middle of the div.
right now I gave the flash element width and height of 100% but that way I can not center the element inside the div...
Any solution? I might need javascript right? Im a newby in javascript!
Maechi
如果不需要与Flash周围环境互动,则可以包括100%宽和100%高的透明Flash,并通过flashvars在其中调整大小和将moviechild定位
if you have:
<div id="container">
<object id="#flash">...</object>
</div>
you can try this css:
#container {
width: <larger or equeals than max flash width>px;
}
#flash {
margin: 0 auto;
}
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.