을 수행합니다. 페이지의 절반을 올리기
버튼을 클릭하면 버튼을 클릭 할 때이 애니메이션이 모두 실행된다고 가정합니다! 따라서
.element {
margin: 0; // on load no margins..
}
$('button').click(function() { // start the jquery animation..
$('.element').css({ // alter the css properties..
margin: '0 0 50% 0' // change the margin..
})
}
b. 아약스 콘텐츠가로드 될 수 있도록 센터의 div 크기를 늘립니다. 이를 위해
,이 라인을 사용하는 것입니다 :
$('button').click(function() { // you can change the event..
/* and at the same time, load the ajax content */
$('otherelement').load('page_url'); // load the page content in element
// or this one
$.ajax({ // start the ajax request; alternate to the load
url: 'page_url', // url to the page
success: function (data) { // catch the response on success
$('otherelement').html(data); // write the response
}
})
}
이것은 당신이 아래쪽 여백을 추가 할 수있을 것입니다 방법의 예는 다음과 같습니다
$('element').css({
height: 'addmoreheight',
/* if more are required! */
})
을 지금 이렇게 요소를 만들고 다른 요소에 아약스 데이터를로드하고 하단에 표시하십시오!
c. 페이지의 하단부와 내용을 낮추십시오.
비슷한 점은 아래쪽으로 조금 이동하십시오! 여백을 추가하거나 position: absolute
을 사용하고 매개 변수를 제공하십시오!
스케치없이 애니메이션 개념을 이해할 수 없습니다. 시도해보십시오. http://html.adobe.com/edge/animate/ –
이 애니메이션은 누적 된 div를 사용하기 때문에 통합 프로 시저를 통해 이동하고 싶습니다. http://tympanus.net/Tutorials/ FullscreenSlitSlider/ –
"페이지 절반을 올리는"의미는 무엇입니까? "페이지 하단부를 낮추라"는 것은 무엇을 의미합니까? – jfriend00