您的位置:首页 > 运维架构 > Linux

Linux内核调整和内核参数详解

2014-06-28 11:16 253 查看
Js代码 

$(window).bind("load", function() {  

      

// IMAGE RESIZE  

    $('#product_cat_list img').each(function() {  

        var maxWidth = 120;  

        var maxHeight = 120;  

        var ratio = 0;  

        var width = $(this).width();  

        var height = $(this).height();  

        if(width > maxWidth){  

            ratio = maxWidth / width;  

            $(this).css("width", maxWidth);  

            $(this).css("height", height * ratio);  

            height = height * ratio;  

        }  

        var width = $(this).width();  

        var height = $(this).height();  

        if(height > maxHeight){  

            ratio = maxHeight / height;  

            $(this).css("height", maxHeight);  

            $(this).css("width", width * ratio);  

            width = width * ratio;  

        }  

    });  

      

//$("#contentpage img").show();  

      

// IMAGE RESIZE  

});  

转自:http://www.iteye.com/news/28047
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: