我正在尝试复制这个模板页面58977/services.html#undefined1的效果
但我不知道如何更改内容,就像带有导航标签的面板一样。我在堆栈溢出http://www.bootply.com/88026上找到了这个例子。
怎么可能只为小屏幕在手风琴上转换呢?
非常感谢。
发布于 2017-01-02 15:02:17
您可以使用JavaScript轻松地做到这一点。
function clickedLink(linkID){
// ------------------------------------------------------ hide all
document.getElementById('home').style.display = 'none';
document.getElementById('link1').style.display = 'none';
document.getElementById('link2').style.display = 'none';
document.getElementById('link3').style.display = 'none';
// ------------------------------------------------------ show active
document.getElementById(linkID).style.display = '';
}下面是一个可行的解决方案:http://www.bootply.com/4EsSTTHzGs
//编辑:现在我了解了您想做的事情:)您可以同时构建它们并使用隐藏的-xx (xx: xs,sm,md,lg)
看看这个:http://www.bootply.com/HIFkqIQgI3
如果不想编写相同的内容两次,可以使用类似于<?php include 'folderx/contentx.html'; ?>的内容包含php内容
如果这对你有用,把这个答案标记为正确的答案。:)
https://stackoverflow.com/questions/41428428
复制相似问题