在浏览器调整大小时调整div标签中的图像大小

时间:2012-03-27 08:08:53

标签: php javascript jquery

<div id="banner">
    <script type="text/javascript" src="gallery/js/jquery.js"></script>
    <script type="text/javascript" src="gallery/js/swfobject.js"></script>
    <script type="text/javascript" src="gallery/js/flashgallery.js"></script>

    <script type="text/javascript">
    jQuery.flashgallery('gallery/gallery.swf', 'gallery/config.xml',{ width:'100%', height:'100%', background: 'transparent'});
    </script>
</div>

有人可以帮我调整div标签中的图片它是使用jquery.flassgallery从最后一天显示我正在尝试这个请如果有人给我邮件我会邮寄代码

1 个答案:

答案 0 :(得分:0)

尝试:

http://api.jquery.com/resize/

$(window).resize(function() {
     $('#banner').width(/* do somthing */).height(/* do something */);
});