IE的表格小部件?固定标题,排序列等 [英] Table Widget for IE? Fixed header, sorting columns, etc

查看:63
本文介绍了IE的表格小部件?固定标题,排序列等的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找最好的JS / CSS解决方案来为表添加功能。

唯一需要支持的浏览器是IE5.5 +,但没有activeX可以

可以使用。


能够做到:

- 固定标题行

- 数据排序(最好根据

内容聪明地确定数据类型

- 如果可能的话,锁定第一列滚动


我''
http ://web.tampabay.rr.com/bmerkey/e...olumn-csv.html

相当不错,但它使用了一个滚动并放置表的DIV在其内部,

使标题行在DIV滚动时向下移动。这很有效,但它不像我想的那样优雅和简单。


我希望IE支持tbody {scroll:auto但是我们没那么幸运:(


-

Matt Kruse
http://www.JavascriptToolbox.com

解决方案

Matt Kruse写道:

我正在寻找最好的JS / CSS解决方案来为表添加功能。
唯一需要支持的浏览器是IE5.5 +但是不能使用activeX。

能够做到:
- 修正标题行
- 数据排序(最好根据<智能确定数据类型) br /> content)
- 如果可能的话,锁定第一列滚动

http://mickweb.com/football/aleague/profiles.html


这样的东西?


Mick
我在
http://web.tampabay.rr.com/bmerkey/e .. .olumn-csv.html 非常好,但它使用了一个DIV滚动并将表放入其中,
使标题行在DIV滚动时向下移动。这样可行,但它并不像我想的那样优雅和简单。

我希望IE支持tbody {scroll:auto}但我们不是那样的lucky:(



Matt Kruse写道:

我正在寻找最好的JS / CSS解决方案为表添加功能。
唯一需要支持的浏览器是IE5.5 +,但不能使用activeX。


好​​奇心 - 为什么IE5.5 +?

能够做到:
- 固定标题行


档案中有例子。我会尝试如果你找不到它们,就把它们打下来。

下午。


如果我没记错的话它会使用TBODY。甚至是跨浏览器:) />
- 数据排序(最好根据
内容智能地确定数据类型)


- 如果可能,锁定第一列滚动


在IE中,我认为你将不得不去一个第二个表,保持第一列的
以防止它滚动。或者,你指的是

行?

我在
http://web.tampabay.rr.com/bmerkey/e...olumn-csv.html 这是非常好的,但它使用一个DIV滚动并将表放在其中,
使标题行在DIV滚动时向下移动。这样可行,但它并不像我想的那样优雅和简单。

我希望IE支持tbody {scroll:auto}但我们不是那样的幸运:(



-

兰迪

comp.lang.javascript常见问题 - http://jibbering.com/faq


Mick White写道:< blockquote class =post_quotes> http://mickweb.com/football/aleague /profiles.html
这样的东西?




对于纯粹的排序,这是有效的。但它并没有聪明地做 - 它

需要一个参数来明确说出数据类型是什么。


-

Matt Kruse
http://www.JavascriptToolbox.com


I''m looking for the best JS/CSS solution to add functionality to tables.
The only browser which needs to be supported is IE5.5+, but no activeX can
be used.

to be able to do:
- Fixed header row
- Data sorting (preferrably intelligently determining data type based on
content)
- If possible, locking the first column from scrolling

I''ve seen one solution at
http://web.tampabay.rr.com/bmerkey/e...olumn-csv.html which is
pretty good, but it uses a DIV that scrolls and puts the table within it,
making the header row move down as the DIV is scrolled. This works, but it''s
not as elegant and simple as I''d like.

I wish IE would support tbody{scroll:auto} but we''re not that lucky :(

--
Matt Kruse
http://www.JavascriptToolbox.com

解决方案

Matt Kruse wrote:

I''m looking for the best JS/CSS solution to add functionality to tables.
The only browser which needs to be supported is IE5.5+, but no activeX can
be used.

to be able to do:
- Fixed header row
- Data sorting (preferrably intelligently determining data type based on
content)
- If possible, locking the first column from scrolling
http://mickweb.com/football/aleague/profiles.html

Something like this?

Mick
I''ve seen one solution at
http://web.tampabay.rr.com/bmerkey/e...olumn-csv.html which is
pretty good, but it uses a DIV that scrolls and puts the table within it,
making the header row move down as the DIV is scrolled. This works, but it''s
not as elegant and simple as I''d like.

I wish IE would support tbody{scroll:auto} but we''re not that lucky :(



Matt Kruse wrote:

I''m looking for the best JS/CSS solution to add functionality to tables.
The only browser which needs to be supported is IE5.5+, but no activeX can
be used.
Curiosity - Why IE5.5+?
to be able to do:
- Fixed header row
There are examples in the archives. I will try to hunt them down this
afternoon if you cant find them.

It used the TBODY if I remember right. It was even cross-browser :)
- Data sorting (preferrably intelligently determining data type based on
content)
- If possible, locking the first column from scrolling
In IE, I think you are going to have to go to a second table, to hold
that first column to keep it from scrolling. Or, are you referring to
the rows?
I''ve seen one solution at
http://web.tampabay.rr.com/bmerkey/e...olumn-csv.html which is
pretty good, but it uses a DIV that scrolls and puts the table within it,
making the header row move down as the DIV is scrolled. This works, but it''s
not as elegant and simple as I''d like.

I wish IE would support tbody{scroll:auto} but we''re not that lucky :(


--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq


Mick White wrote:

http://mickweb.com/football/aleague/profiles.html
Something like this?



For purely sorting, that works. But it doesn''t do it intelligently - it
requires a parameter to explicitly say what the data type is.

--
Matt Kruse
http://www.JavascriptToolbox.com


这篇关于IE的表格小部件?固定标题,排序列等的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆