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
$(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
相关文章推荐
- Linux 内核参数及Oracle相关参数调整
- linux 内核参数调整说明
- proc/sys/net 详解(即时调整内核网络参数)
- linux中与Oracle有关的内核参数详解
- Linux安装oracle时对共享内存段和信号量的系统内核参数调整
- linux 内核调整相关参数
- linux中与Oracle相关的内核参数详解
- linux 内核参数调整说明
- Linux 内核参数 和 Oracle相关参数调整
- Linux内核参数(如kernel.shmmax)及Oracle相关参数调整(如SGA_MAX_SIZE)
- Linux 内核参数 和 Oracle相关参数调整
- Linux 内核参数 和 Oracle相关参数调整
- Linux内核(4)——grub.conf文件参数详解[转]
- linux 内核参数调整说明
- Linux 内核参数设置于详解 --Oracle 安装
- Linux 内核参数及Oracle相关参数调整
- Linux 内核参数 和 Oracle相关参数调整
- Linux 内核参数及Oracle相关参数调整
- linux 内核参数调整说明
- linux 内核参数调整说明