I'm trying to use the following js to change the width and height of a swf.
$('object').attr({'width':100,'height':100});
$('object embed').attr({'width':100,'height':100});
The script works well on firefox, safari, IE8. However, it doesn't work on IE7.
Is there any solution?
How about with
$('object, embed')
.attr({'width':100,'height':100})
.width(100).height(100);
How about wrap the Flash with a div. Set the Flash to 100% height and width. And then you resize the div instead?
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.