开发者

HTML Table with scrollbar or select list with columns?

开发者 https://www.devze.com 2023-01-20 10:02 出处:网络
i wish to grab items from a database and put them in a fixed size \'container\', which will have a scrollbar. How could i do this so that internally i can still have columns so different field lengths

i wish to grab items from a database and put them in a fixed size 'container', which will have a scrollbar. How could i do this so that internally i can still have columns so different field lengths remain alligned within the table?

Either i need some sort of select with formatted columns or i need a table which can be a c开发者_如何学编程onstant height and you scroll down further to see more results. At the moment ive got a table and the more results i have, the longer my actual whole page is.


well you could use {overflow-y:scroll;} on a div for the scroll part.

Or you could use pagination in you db query, so you only have a set number of results per page if you dont like to scroll.

0

精彩评论

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