HTML-таблица с фиксированными заголовками?

Оказывается, это единственный путь

Из erlang документации

Веселье очень ограничено, оно может занять только один параметр (объект для сопоставления): единственная переменная или кортеж. Он должен использовать тесты is_ guard. Языковые конструкции, которые не имеют представления в спецификации соответствия (if, case, receive и т. Д.), Не допускаются.

blockquote>

Больше информации о характеристиках совпадений в Erlang

226
задан Termininja 12 January 2016 в 07:55
поделиться

2 ответа

I've just completed putting together a jQuery plugin that will take valid single table using valid HTML (have to have a thead and tbody) and will output a table that has fixed headers, optional fixed footer that can either be a cloned header or any content you chose (pagination, etc.). If you want to take advantage of larger monitors it will also resize the table when the browser is resized. Another added feature is being able to side scroll if the table columns can not all fit in view.

http://fixedheadertable.com/

on github: http://markmalek.github.com/Fixed-Header-Table/

It's extremely easy to setup and you can create your own custom styles for it. It also uses rounded corners in all browsers. Keep in mind I just released it, so it's still technically beta and there are very few minor issues I'm ironing out.

It works in Internet Explorer 7, Internet Explorer 8, Safari, Firefox and Chrome.

57
ответ дан 23 November 2019 в 03:53
поделиться

Два отделения, один для заголовка, один для данных. Сделайте отделение данных с возможностью прокрутки, и используйте JavaScript для установки ширины столбцов в заголовке для совпадения с ширинами в данных. Я думаю, что ширины столбцов данных должны быть зафиксированы, а не динамичные.

2
ответ дан Peter Mortensen 23 November 2019 в 03:53
поделиться
Другие вопросы по тегам:

Похожие вопросы: