change_jquery.js 562 Bytes
//切换
$(".rz_query_right_header li").on('click',function(){
    var type=$(this).attr("data.value");
    $(this).addClass('two_active').siblings().removeClass('two_active');
    if(type=="1"){
        $(".first_lc").toggle();
         $(".two_lc").toggle();
    }else{
        $(".two_lc").toggle();
        $(".first_lc").toggle();
    }
})
$('.li_if').click(function(){
    let left_distance = $(this).position().left + $(this).width()/2 - 16
    $('.change_li').css("left",left_distance)
    console.log($(this).position().left + $(this).width()/2 - 16)
})