//���ƽ�վ��www.400301.com���ṩ����֧�� //���ò�ʒͼ�������ȥ������ɻ�ɫ $(function () { $(".img_list_301 ul li").hover(function () { $(this).css({ "background": "#f4f4f4" }) }, function () { $(this).css({ "background": "none" }) }) }) //����ͼƭ��ʾ $(window).load(function () { var pcount = 3; //ͼƭÿ����ʾ���� var newlistwidth = $(".newlist").width(); $(".newlist").css({ width: newlistwidth + 15 }); var jianbian = (pcount - 1) * 15 + pcount * 2; //����ȥ��ı߿� var neikuan = newlistwidth - jianbian; $(".img_list_301 ul li").css({ width: neikuan / pcount }); $(".img_list_301 ul li").css({ height: neikuan / pcount + 30 }); var kuangzi = neikuan / pcount; $(".show_img").css({ "height": kuangzi }); var alishow_img = $('.show_img img'); alishow_img.each(function (index) { var iwidth = $(this).width(); var iheight = $(this).height(); if (iwidth > iheight) { $(this).css({ "width": kuangzi * 0.92 }); } else { $(this).css({ "height": kuangzi * 0.92 }); } }); //���ʊ��ⳬ��������ʾʡ�ժ� $(".show_img_title a").css({ "display": "block", "width": kuangzi - 10, "overflow": "hidden", "white-space": "nowrap", "text-overflow": "ellipsis" }); })