Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/jquery/76.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/css/32.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
带有jquery和分页的图像缩放_Jquery_Css_Image - Fatal编程技术网

带有jquery和分页的图像缩放

带有jquery和分页的图像缩放,jquery,css,image,Jquery,Css,Image,我正在使用插件imgscale.jquery.js调整div的大小,并用图像填充div。这在不使用寻呼机脚本的情况下运行良好。所有图像都会调整大小并完全填充div 然而,当使用分页时,一些图片并不能填满整个空间。看起来并不是整个脚本都被执行了 <script type="text/javascript"> $(document).ready(function(){ $('img.thumbnails').imgscale({ parent : '.thum

我正在使用插件imgscale.jquery.js调整div的大小,并用图像填充div。这在不使用寻呼机脚本的情况下运行良好。所有图像都会调整大小并完全填充div

然而,当使用分页时,一些图片并不能填满整个空间。看起来并不是整个脚本都被执行了

<script type="text/javascript">
    $(document).ready(function(){ 
    $('img.thumbnails').imgscale({ 
    parent : '.thumbnail_container',
fade : 3000 
    });   
  });
</script>

$(文档).ready(函数(){
$('img.thumbnails').imgscale({
父项:'.thumbnail_容器',
褪色:3000
});   
});

是否可以确保所有页面的所有图像都得到处理?

分页是通过服务器端还是客户端(JS)完成的?是否在加载dom后将一些图片动态添加到父级“.thumbnail_container”中?您好,使用jquery.pajinate.JS完成分页from:未添加图片这是html部分:{foreach item=item key=key from=$list2}{/foreach}