9
固定了带水平滚动条和垂直滚动条的标题表
我一直试图找出这个问题,我有html / css粘页眉+滚动条。我们正在创建一个程序,当容器大小达到某个点时(取决于用户的分辨率),该程序需要滚动条才能显示。 我在表的第二列上强制使用最小宽度,因此表在特定点处停止减小,并强制容器保持在特定宽度。容器上的溢出显示水平滚动条。一切正常。一旦我添加了第二个滚动条进行垂直滚动,事情就变得一团糟。有人对此问题有解决方案吗?我想在.table-body上有一个垂直滚动条,但是滚动条必须在externalcontainer上可见。 固定头表是否有很好的html / css解决方案?我已经搜索了一个星期,但是只能找到这种行为的jQuery插件。 这是我当前的HTML: <!DOCTYPE html> <html> <head> <title>fixed header prototyping</title> <link rel="stylesheet" href="css/style.css"> </head> <body> <div class="outer-container"> <!-- absolute positioned container --> <div class="inner-container"> <div class="table-header"> <table id="headertable" width="100%" cellpadding="0" cellspacing="0"> <thead> <tr> <th class="header-cell col1">One</th> <th class="header-cell col2">Two</th> <th class="header-cell col3">Three</th> <th class="header-cell col4">Four</th> …
68
html
css
header
html-table
fixed