jquery 获取同级元素

$(".userinfo-three:eq(0)").css({
                "width": winWidth * 300 / 1080,
                "top": winWidth * 530 / 1080,
                "left": winWidth * 450 / 1080,
            });
            $(".userinfo-three:eq(1)").css({
                "width": winWidth * 300 / 1080,
                "top": winWidth * 700 / 1080,
                "left": winWidth * 220 / 1080,
            });
            $(".userinfo-three:eq(2)").css({
                "width": winWidth * 300 / 1080,
                "top": winWidth * 780 / 1080,
                "left": winWidth * 670 / 1080,
            });
posted @ 2019-07-12 15:47  武卡卡  阅读(3837)  评论(0编辑  收藏  举报