简体   繁体   English

GroceryCRUD布局

[英]GroceryCRUD layout

I was about to ask about the problem I'm facing while making web using CodeIgniter and GroceryCRUD as extended library. 我正要问我在使用CodeIgniter和GroceryCRUD作为扩展库制作Web时遇到的问题。

I'm using this $output (same way as gcrud zip package's examples.php) to display the table. 我正在使用此$ output(与gcrud zip包的examples.php相同的方式)来显示表。

Then I put $output in the middle of my web page (after some header) in a wrapper (a [div]) with no value/definition of height in its style (css). 然后,我将$ output放在我的网页中间(在某些标头之后)的包装器([div])中,样式的高度(css)没有值/高度的定义。 I also put a [footer] after (outside) the wrapper div with (the [footer]'s) position:relative;. 我还在[diver]的位置:relative;在包装器div的外部(外部)后面放置了[footer]。

The problem is, if my table (generated with $output) is longer than the screen, my footer is just placed in the bottom of the screen, while the table is actually longer than screen (window). 问题是,如果我的表(由$ output生成)比屏幕长,则我的页脚仅位于屏幕底部,而表实际上比屏幕(窗口)长。

Then, when I scrolling down, the footer is stayed in the middle of my table's wrapper, instead of placed in the end, after the div wrapper of $output table, just look like it was stacked purposely in the middle of wrapper div. 然后,当我向下滚动时,页脚将停留在表包装的中间,而不是放在$ output表的div包装之后的末尾,就像看起来是故意将其堆积在包装div的中间一样。

All I want is to place the footer right after the wrapper div. 我只想将页脚放在包装器div之后。

You have any idea? 你有什么主意吗 Thanks in advance. 提前致谢。

Ps. 附言 I was wondering if it's because of the table is rendered after the footer. 我想知道是否是因为表格在页脚之后呈现。 The footer is placed before the table finished (as it assume the wrapper div is empty). 页脚放置在表格完成之前(因为假设包装div为空)。 So the footer is stacked at top of the table. 因此,页脚堆积在桌子的顶部。 So, is it possible if we can order the parse of layout? 因此,是否可以命令布局解析? (Javascript). (JavaScript)。 I'm barely know js, or almost nothing I know at all. 我几乎不了解js,或几乎一无所知。

尝试使用CSS并使用CSS函数padding和margin调整页脚的位置。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM