How can I have vertical scroll bar for table in GSP?
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'
精彩评论