이 github repo here 에서와 같이 페이지가 열릴 때 내 페이지 콘텐츠가 300px (사이드 탐색 너비)만큼 오른쪽으로 밀리도록 노력했습니다 .
div #content에 푸시 할 모든 콘텐츠를 포함했습니다.
그러나 어떤 이유로 이것은 여기에 영향을 미치지 않습니다.
function openNav() {
document.getElementById("Therightnav").style.width = "300px";
document.getElementById("content").style.marginRight = "300px";
}
function closeNav() {
document.getElementById("Therightnav").style.width = "0";
document.getElementById("content").style.marginRight = "50px";
}
어떤 도움을 주시면 감사하겠습니다.
이 코드를 사용해보십시오.
function openNav() {
document.getElementById("Therightnav").style.width = "300px";
document.getElementById("footer_container").style.marginRight = "300px";
var x = document.getElementsByClassName("slideshow-container");
x[0].style.marginRight = "300px";
}
function closeNav() {
document.getElementById("Therightnav").style.width = "0";
document.getElementById("footer_container").style.marginRight = "50px";
var x = document.getElementsByClassName("slideshow-container");
x[0].style.marginRight = "50px";
}
이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.
침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제
몇 마디 만하겠습니다