포지셔닝된div환형/원형 배열

936 단어 angularJS

            
$(function(){
        var radius =300;
        var avd = 210/$(".modepayment-content div").length;
        var ahd = avd*Math.PI/180;
       $(".modepayment-content").css({"left":0,"top":200});
        $(".modepayment-content div").each(function(index, element){
            $(this).css({"bottom":Math.sin((ahd*index))*radius,"right":Math.cos((ahd*index))*radius+405});
        });
    })

좋은 웹페이지 즐겨찾기