只有中间部分应滚动,左&amp&amp&应修复页面的顶部
我最近开始学习编程,也许有人可以帮助我?请 我的问题是:我想编写一个网站,在该网站上仅滚动,顶部,左侧和右侧仍保持到位。是否可以这样做不是很复杂? 网页示例: https://dominos.ua/uk/kyiv/ 该页面已修复) https://news.google.com/ (页面的顶部 +页面的左侧固定) 另外,这是我到目前为止的代码(也许可以帮助):
.middlepane {
width: 50%;
height: 100%;
float: left;
background-color: #c6e5f3;
border-collapse: collapse;
}
.rightpane {
width: 25%;
height: 100%;
float: right;
background-color: #084a83;
border-collapse: collapse;
}
.toppane {
width: 100%;
height: 100px;
border-collapse: collapse;
background-color: #ffffe7;
align-items: center;
}
.leftpane {
width: 25%;
height: 100%;
float: left;
background-color: #084a83;
border-collapse: collapse;
I have recently started to learn programming, maybe someone can help me? Please
My problem: I would like to write a website where only the middle part of the site is scrolling and the top, left and right sides remain in place. Is it possible to do this not very complicated?
Web-page examples: https://dominos.ua/uk/kyiv/ (the top of the page is fixed)
https://news.google.com/ (the top of the page + the left side of the page are fixed)
Also, here is my code so far (maybe it can help):
.middlepane {
width: 50%;
height: 100%;
float: left;
background-color: #c6e5f3;
border-collapse: collapse;
}
.rightpane {
width: 25%;
height: 100%;
float: right;
background-color: #084a83;
border-collapse: collapse;
}
.toppane {
width: 100%;
height: 100px;
border-collapse: collapse;
background-color: #ffffe7;
align-items: center;
}
.leftpane {
width: 25%;
height: 100%;
float: left;
background-color: #084a83;
border-collapse: collapse;
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我会建议学习如何使用Flexbox。这是如何做。
I would advice learning how to use flexbox. Here's an article that explains how to do it.