冻结表头。 [英] Freeze Table Headers.

查看:57
本文介绍了冻结表头。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好。


有我想做的事情,我有一个页面可以为我们的员工提供超过给定时间的所有

小时期间计算了它们并在15个不同的列上报告了

,并且表格中有500行单独的

数据。现在,你可以想象这是一个夜晚的母马看起来对任何人来说,我已经做了一些事情来记住哪些列

然而这是一个简单的解决方案在你的向下滚动时,可以到顶行,或行我们定义在顶部停留。


这是经典的ASP,而不是ASP.NET,我可以找到很多资源用于

ASP.NET但是ASP没有。


我考虑过Frames,但是谁真的想搞砸那个

ad页面顶部有很多控件操纵

数据。


我也听说过使用过JavaScript或CSS,有没有人在此之前获得这个




我不确定你是否需要我的代码,因为这只是经典表格

设计


在此先感谢

解决方案



Nico VanHaaster写道:

大家好。

有我想做的事情,我有一个页面可以为我们的工作人员在一定时间内计算所有工作时间并报告
返回15个不同的colums,并且是aproximatly 500表格的各行数据。现在你可以想象这是一个夜晚的母马,看起来对任何人来说,我已经做了一些事情来记住哪些列
然而一个简单的解决方案将是顶行或行当你向下滚动时我定义保持在顶部。

这是经典的ASP而不是ASP.NET,我可以为ASP.NET找到很多资源但是什么也没有对于ASP。

我考虑过Frames,但是谁真的想搞砸那个
广告,页面顶部有很多操控数据的控件。

我也听说过使用过JavaScript或CSS,有没有人能够实现这个目标?




就个人而言,我会考虑分页结果,但如果你真的想要在一个页面上显示500行,那么你可以看看
http://underscorebleach.net/jotsheet...ith-css-lay out

使用css应用框架状外观。显然这个

在所有浏览器中都不起作用,所以你可能想稍微谷歌一下。

如果你打算在客户端解决方案(框架/ javascript / css)你

最好把你的问题带到一个更合适的小组。


-

Mike Brind


Nico VanHaaster写于2006年24日,在
microsoft.public.inetserver.asp.general:
< Helloquote class =post_quotes>大家好。

有我想做的事情,我有一个页面可以在一定时间内为我们的员工计算所有小时数报告
返回15个不同的列,并且表格中有500行单独的
数据。现在你可以想象这是一个夜晚的母马,看起来对任何人来说,我已经做了一些事情来记住哪些列
然而一个简单的解决方案将是顶行或行当你向下滚动时我定义保持在顶部。

这是经典的ASP而不是ASP.NET,我可以为ASP.NET找到很多资源但是什么也没有对于ASP。

我考虑过Frames,但是谁真的想搞砸那个
广告,页面顶部有很多操控数据的控件。

我也听说过使用JavaScript或CSS,有没有人实现过这个
之前?




这不是一个serversode /您正在使用的ASP解决方案,

所以真的在这里非常主题。

请继续使用客户端HTML或CSS NG


==========


给第一行分隔< table>并且在具有固定高度的表中具有内容行

,以便如果

表行数超出设定高度,则会生成滚动条。

指定每个td宽度:?? px;正确使用table-layout:fixed;这些

表。


-

Evertjan。

荷兰。

(请在我的电子邮件地址中将x'变为点数)


嗨Nico,


这里是你的代码..只需修改它和你的。


< table border =" 1" width = 500 cellpadding = 0 cellspacing = 0>

< tr>

< td width =" 25%"> First< / td>

< td width =" 25%"> Second< / td>

< td width =" 25%"> Third< / td>

< td width =" 25%"> Fourth< / td>

< / tr>

< tr> ;

< td colspan =" 4">

< div style =" position:absolute; height:227px; overflow:auto;"> ;

< table width =" 500"边界=" 1 QUOT; ID = QUOT;表1" cellpadding = 0

cellspacing = 0>

< tr>

< td width =" 25%"> 1< / td>

< td width =" 25%"> 2< / td>

< td width =" 25%"> 3< / td>

< td width =" 25%"> 4< / td>

< / tr>

< tr>

< td width =" 25%"> 1< / td>

< td width =" 25%" ;> 2< / td>

< td width =" 25%"> 3< / td>

< td width =" 25 %"> 4< / td>

< / tr>

< tr>

< td width =" 25%<> 1< / td>

< td width =" 25%"> 2< / td>

< td width = 25%> 3< / td>

< td width =" 25%"> 4< / td>

< / tr>

< tr>

< td width =" 25%"> 1< / td>

< td width =" 25%"> 2< / td>

< t d width =" 25%"> 3< / td>

< td width =" 25%"> 4< / td>

< / tr>

< tr>

< td width =" 25%"> 1< / td>

< td width =" 25%"> 2< / td>

< td width =" 25%"> 3< / td>

< td width =" 25%"> 4< / td>

< / tr>

< tr>

< td width =" 25%"> 1< / td>

< td width =" 25%"> 2< / td>

< td width =" 25%"> 3< / td>

< td width =" 25%"> 4< / td>

< / tr>

< tr>

< td> 1< / td>

< td> 2< / td>

< td> 3< / td>

< td> 4< / td>

< / tr>

< tr>

< td> 1< / td>

< td> 2< / td>

< td> 3< / td>

< td> 4< / td>

< / tr>

< tr>

< td> 1< / td>

< td> ; 2< / td>

< td> 3< / td>

< td> 4< / td>

< / tr>

< tr>

< td> 1< / td>

< td> 2< / td>

< td> 3< / td>

< td> 4< / td>

< / tr>

< tr>

< td> 1< / td>

< td> 2< / td>

< td> 3< / td>

< td> 4< / td>

< / tr>

< tr> ;

< td> 1< / td>

< td> 2< / td>

< td> 3< / td>

< td> 4< / td>

< / tr>

< tr>

< td> 1< / td>

< td> 2< / td>

< td> 3< / td>

< td> 4< / td>

< / tr>

< tr>

< td> 1< ; / td>

< td> ; 2< / td>

< td> 3< / td>

< td> 4< / td>

< / tr>

< tr>

< td> 1< / td>

< td> 2< / td>

< td> 3< / td>

< td> 4< / td>

< / tr>

< tr>

< td> 1< / td>

< td> 2< / td>

< td> 3< / td>

< td> 4< / td>

< / tr>

< tr> ;

< td> 1< / td>

< td> 2< / td>

< td> 3< / td>

< td> 4< / td>

< / tr>

< / table>

< / div>

< / td>

< / tr>

< / table>


Hello all.

There is what i would like to do, I have a page that pulls all the
hours for our staff over a given period calculated them and reports
back on 15 different colums and is aproximatly 500 individual rows of
data for a table. Now as you could imagine that is a night mare to look
at for anyone, i have done a few things to make remeber which columns
are which however a simple Solution would be to the top row, or rows i
define stay constantly at the top as your scroll down.

This is classic ASP and not ASP.NET, I can find alot of resources for
ASP.NET but nothing for ASP.

I have considered Frames, but who really wants to mess around with that
ad there are alot of controls at the top of the page that manipulate
the data.

Also i have heard of using JavaScript or CSS, Has anyone achieved this
before?

I am not sure if you need my code or not as this is just classic table
design

Thanks In Advance

解决方案


Nico VanHaaster wrote:

Hello all.

There is what i would like to do, I have a page that pulls all the
hours for our staff over a given period calculated them and reports
back on 15 different colums and is aproximatly 500 individual rows of
data for a table. Now as you could imagine that is a night mare to look
at for anyone, i have done a few things to make remeber which columns
are which however a simple Solution would be to the top row, or rows i
define stay constantly at the top as your scroll down.

This is classic ASP and not ASP.NET, I can find alot of resources for
ASP.NET but nothing for ASP.

I have considered Frames, but who really wants to mess around with that
ad there are alot of controls at the top of the page that manipulate
the data.

Also i have heard of using JavaScript or CSS, Has anyone achieved this
before?



Personally, I would consider paginating the results, but if you really
want to present 500 rows on a page then you could have a look at
http://underscorebleach.net/jotsheet...ith-css-layout
which uses css to apply a framelike appearance. Apparently this
doesn''t work in all browsers, so you might want to google about a bit.
If you are intent on a client-side solution (frames/javascript/css) you
would be better off taking your question to a more appropriate group.

--
Mike Brind


Nico VanHaaster wrote on 24 mei 2006 in
microsoft.public.inetserver.asp.general:

Hello all.

There is what i would like to do, I have a page that pulls all the
hours for our staff over a given period calculated them and reports
back on 15 different colums and is aproximatly 500 individual rows of
data for a table. Now as you could imagine that is a night mare to look
at for anyone, i have done a few things to make remeber which columns
are which however a simple Solution would be to the top row, or rows i
define stay constantly at the top as your scroll down.

This is classic ASP and not ASP.NET, I can find alot of resources for
ASP.NET but nothing for ASP.

I have considered Frames, but who really wants to mess around with that
ad there are alot of controls at the top of the page that manipulate
the data.

Also i have heard of using JavaScript or CSS, Has anyone achieved this
before?



This is not a serversode/ASP solution you are after,
so realy off-topic here.
Please continue on a clientside html or css NG

==========

Give the top row a seperate <table> and have the content rows
in a table with a fixed height, so that a scrollbar will develop if the
table row number exeeds the set height.
Specify each td width:??px; correctly and use table-layout:fixed; for these
tables.

--
Evertjan.
The Netherlands.
(Please change the x''es to dots in my emailaddress)


Hi Nico,

Here is code for you.. Just modify it and its your.

<table border="1" width=500 cellpadding=0 cellspacing=0>
<tr>
<td width="25%">First</td>
<td width="25%">Second</td>
<td width="25%">Third</td>
<td width="25%">Fourth</td>
</tr>
<tr>
<td colspan="4">
<div style="position: absolute;height:227px;overflow:auto;">
<table width="500" border="1" ID="Table1" cellpadding=0
cellspacing=0>
<tr>
<td width="25%">1</td>
<td width="25%">2</td>
<td width="25%">3</td>
<td width="25%">4</td>
</tr>
<tr>
<td width="25%">1</td>
<td width="25%">2</td>
<td width="25%">3</td>
<td width="25%">4</td>
</tr>
<tr>
<td width="25%">1</td>
<td width="25%">2</td>
<td width="25%">3</td>
<td width="25%">4</td>
</tr>
<tr>
<td width="25%">1</td>
<td width="25%">2</td>
<td width="25%">3</td>
<td width="25%">4</td>
</tr>
<tr>
<td width="25%">1</td>
<td width="25%">2</td>
<td width="25%">3</td>
<td width="25%">4</td>
</tr>
<tr>
<td width="25%">1</td>
<td width="25%">2</td>
<td width="25%">3</td>
<td width="25%">4</td>
</tr>
<tr>
<td>1</td>
<td>2</td>
<td>3</td>
<td>4</td>
</tr>
<tr>
<td>1</td>
<td>2</td>
<td>3</td>
<td>4</td>
</tr>
<tr>
<td>1</td>
<td>2</td>
<td>3</td>
<td>4</td>
</tr>
<tr>
<td>1</td>
<td>2</td>
<td>3</td>
<td>4</td>
</tr>
<tr>
<td>1</td>
<td>2</td>
<td>3</td>
<td>4</td>
</tr>
<tr>
<td>1</td>
<td>2</td>
<td>3</td>
<td>4</td>
</tr>
<tr>
<td>1</td>
<td>2</td>
<td>3</td>
<td>4</td>
</tr>
<tr>
<td>1</td>
<td>2</td>
<td>3</td>
<td>4</td>
</tr>
<tr>
<td>1</td>
<td>2</td>
<td>3</td>
<td>4</td>
</tr>
<tr>
<td>1</td>
<td>2</td>
<td>3</td>
<td>4</td>
</tr>
<tr>
<td>1</td>
<td>2</td>
<td>3</td>
<td>4</td>
</tr>
</table>
</div>
</td>
</tr>
</table>


这篇关于冻结表头。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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