我想让表格固定在页眉和页脚之间
我创建了一个包含三个部分的 HTML 页面。顶部有一个页眉,中间有两个表格,底部有一个页脚。所有这三个都在三个 div 中定义。使用 css 属性 (top:0px;
position:fixed;
) 将页眉固定在顶部,同样,使用 css 属性将页脚固定在底部 (>底部:0px;
位置:固定;
)。
在所有情况下,表格都必须固定在页眉和页脚之间,即当浏览器放大或缩小时,表格必须固定在页眉和页脚之间。
更具体地说,表格的顶部必须粘在页眉的底部,表格的底部必须粘在页脚的顶部,我认为表格必须表现出一定的流动性。有这样的事吗。
有人可以帮忙吗?
I have created a HTML page with three section. One header at the top, two a table at the middle and a footer at the bottom. All the three is defined in three divs. The Header is fixed at the top using the css property ( top:0px;
position:fixed;
), likewise the footer is fixed at the bottom using css property (bottom:0px;
position:fixed;
).
The table have to be fixed in between the header and footer in all conditions, ie when the browser is zoomed in or zoomed out the table have to be fixed between the header and footer.
To be more specific the top of the table have to stick to the bottom of the header and the bottom of the table have to stick to the top of the footer, I think the table have to exhibit some fluid property. Is there any thing like that.
Can anyone help?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
请尝试以下操作:
Try the following: