[英]How to split an html page to where clicking a link on the top half will open it on the bottom half, not affecting the top half at all
我想要一个带有链接的上半部分,当点击它们时,它们会在屏幕的下半部分打开各种页面,并且可以通过引导标签访问,但我不知道如何拆分屏幕。
You can create two div part, one for the part where link is displayed and another for its content.您可以创建两个 div 部分,一个用于显示链接的部分,另一个用于其内容。
<div id='navDiv'>Header</div>
<div id='contentDiv'>some content</div>
*In css-*
#navDiv{
position: fixed;
top:0;
width: 100%;
height: 100px;
background: white;
z-index: 10;
}
#contentDiv{
position: absolute;
margin-top: 100px;
}
You can see the example here - https://next.plnkr.co/edit/kLjIPwbLgDCVjpKE?open=lib%2Fscript.js您可以在此处查看示例 - https://next.plnkr.co/edit/kLjIPwbLgDCVjpKE?open=lib%2Fscript.js
您可能想要使用 iframe 元素
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.