开发者

How can I have vertical scroll bar for table in GSP?

开发者 https://www.devze.com 2023-03-12 11:15 出处:网络
I have table in my gsp. And I开发者_JAVA百科 want to have vertical scroll bar to it. How can I do that.You can not with TABLE Element, You do can with DIV

I have table in my gsp. And I开发者_JAVA百科 want to have vertical scroll bar to it. How can I do that.


You can not with TABLE Element, You do can with DIV

<div style="overflow: scroll/auto/hidden;"></div>

scroll always prints both the vertical and the horizontal scroll-bars auto makes one or the others or both to appear as soon as content grows; hidden always prevent both scroll-bars from appearing.

DIV can either contain a TABLE (as code below) and be contained in a TD table-cell. If DIV inside a table at whichsoever level of the document, HEIGHT You want to assign to a gets fooled if given in % percentage; still works fine in pixel, instead.

So you just need to include your table element inside the div with :

style='overflow:scroll'
0

精彩评论

暂无评论...
验证码 换一张
取 消