excel数据透视表如何创建导航工作表-英雄云拓展知识分享
318
2024-01-22
我一直在试图使我的页面内容被按300px(侧面导航的宽度)推向右边,如 这个github回购在这里.
我包括所有要推入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";
}
免责声明:
本网址(www.yingxiongyun.com)发布的材料主要源于独立创作和网友匿名投稿。此处提供的所有信息仅供参考之用。我们致力于提供准确且可信的信息,但不对材料的完整性或真实性作出任何保证。用户应自行验证相关信息的正确性,并对其决策承担全部责任。对于由于信息的错误、不准确或遗漏所造成的任何损失,本网址不承担任何法律责任。本网站所展示的所有内容,如文字、图像、标志、音频、视频、软件和程序等的版权均属于原创作者。如果任何组织或个人认为网站内容可能侵犯其知识产权,或包含不准确之处,请即刻联系我们进行相应处理。