2
다음 코드는 작동하지 않습니다. div를 위치에서 위로 변경하려면 어떻게 변경합니까?Jquery로 CSS 상단 위치 이동
div { width:220px; height:170px; margin: 10px 50px 10px 10px;
background:yellow; border:2px groove; float:right; }
#alt { width:20px; height:170px; margin: 10px 50px 10px 10px;
background:blue; border:2px groove; float:right; }
#altLevel { width:10px; height:20px;
background:red; border:2px groove; }
$('div').mouseclick(function() {
$('#altLevel').css('top', '+=10');
});
브릴리언트, 감사 너의 도움을 많이해라. –