动态表问题 [英] Dynamic Table Issue

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

问题描述



我正在编写一个表来显示来自记录集的数据,我的问题是,尽管你可以看到表不应超过该屏幕大小,但确实如此。我的用户必须向右滚动一英里才能看到最右边的列...

有什么想法吗?我已经尝试在每个< td>< / td>上使用宽度说明符了。它没有帮助,我在这里缺少什么?


Response.Write"< table border =''1''width ='''100%''> ;" ''应该这样做!!!!


我正常做..


Do While Not objRS.EOF

Response.Write("< tr>< td>< font face =''Verdana''size =''2''>"& objRS(" co_num")& ;"< / font>"&"< / td>")& vbCr


我知道我应该使用css ..无论如何我上面的表格有什么问题???


I am writing a table out to display data from a recordset and my problem is that even though as you can see the table should not exceed that screen size, it does. My users will have to scroll a mile to the right to see the right most column...
Any ideas? I have already tried using width specifiers on each <td></td> and it doesn''t help, what am I missing here?

Response.Write "<table border=''1'' width=''100%''>" '' should do the trick!!!!

I am doing the usual..

Do While Not objRS.EOF
Response.Write("<tr><td><font face=''Verdana'' size=''2''>" & objRS("co_num") & "</font>" & "</td>" ) & vbCr

I know I should be using css.. anyway whats wrong with my table above???

推荐答案

表格单元格中有什么?你有一个长而坚不可摧的字符串吗?


-

Curt Christianson

所有者/首席开发人员,DF-Software
www.Darkfalz.com

" HenryW" ; <一个******* @ discussions.microsoft.com>在留言中写道

新闻:F1 ********************************** @ microsof t.com ...
what''s in the table cell? Do you have a long, unbreakable, string?

--
Curt Christianson
Owner/Lead Developer, DF-Software
www.Darkfalz.com
"HenryW" <an*******@discussions.microsoft.com> wrote in message
news:F1**********************************@microsof t.com...

我正在编写一个表来显示记录集中的数据而我的问题是
即使你可以看到表不应该超过那个屏幕

大小,确实如此。我的用户必须向右滚动一英里才能看到

最右边的列...有什么想法吗?我已经尝试在每个< td>< / td>上使用宽度说明符了。
并没有帮助,我在这里缺少什么?
Response.Write"< table border =''1''width ='''100%''>" ''应该这样做!!!!

我正在做正常的事情......

请不要objRS.EOF
Response.Write("< ; tr>< td>< font face =''Verdana''size ='''''>"& objRS(" co_num")
&"< / font> &"< / td>")& vbCr
我知道我应该使用css ..无论如何我上面的表格错了???

I am writing a table out to display data from a recordset and my problem is that even though as you can see the table should not exceed that screen
size, it does. My users will have to scroll a mile to the right to see the
right most column... Any ideas? I have already tried using width specifiers on each <td></td> and it doesn''t help, what am I missing here?
Response.Write "<table border=''1'' width=''100%''>" '' should do the trick!!!!

I am doing the usual..

Do While Not objRS.EOF
Response.Write("<tr><td><font face=''Verdana'' size=''2''>" & objRS("co_num") & "</font>" & "</td>" ) & vbCr
I know I should be using css.. anyway whats wrong with my table above???



在星期一, 2004年3月29日06:56:06 -0800,HenryW

< an ******* @ discussion.microsoft.com>写道:
On Mon, 29 Mar 2004 06:56:06 -0800, HenryW
<an*******@discussions.microsoft.com> wrote:

我正在编写一个表来显示记录集中的数据,我的问题是,即使你可以看到表不应超过该屏幕大小,它确实。我的用户必须向右滚动一英里才能看到最右边的列...
任何想法?我已经尝试在每个< td>< / td>上使用宽度说明符了。它没有帮助,我在这里缺少什么?

Response.Write"< table border =''1''width ='''100%''>" ''应该这样做!!!!

我正在做正常的事情......

请不要objRS.EOF
Response.Write("< ; tr>< td>< font face =''Verdana''size ='''''>"& objRS(" co_num")&"< / font>"& "< / td>")& vbCr

我知道我应该使用css ..无论如何我上面的表格错了???

I am writing a table out to display data from a recordset and my problem is that even though as you can see the table should not exceed that screen size, it does. My users will have to scroll a mile to the right to see the right most column...
Any ideas? I have already tried using width specifiers on each <td></td> and it doesn''t help, what am I missing here?

Response.Write "<table border=''1'' width=''100%''>" '' should do the trick!!!!

I am doing the usual..

Do While Not objRS.EOF
Response.Write("<tr><td><font face=''Verdana'' size=''2''>" & objRS("co_num") & "</font>" & "</td>" ) & vbCr

I know I should be using css.. anyway whats wrong with my table above???




ASP方面没什么。 :)


你会想要在HTML或其他客户端组中进行跟进,但我的

猜测你会有一个很长的字符串那些不会或不是
的人物并没有包裹在牢房中。在每一列上使用固定的宽度应该工作,但它可以很笨重。


从ASP方面(留在主题上)你可以写一个常规,

进行字符计数并包裹长字符串,以便它们适合表格

单元格。我在某个地方看到了这个功能,但我没有链接

而且我不会在我做的事情中使用它,你可能会找到一些东西

在aspin.com之类的。


Jeff



Nothing from an ASP aspect. :)

You''ll want to follow up in a HTML or other client-side group, but my
guess would be you have a long string of characters that won''t or
isn''t wrapping in the cell. Using a fixed width on each column should
work, though it can be clunky.

From an ASP aspect (to stay on topic) you can write a routine that
does a character count and wraps long strings so they fit in table
cells. I saw a function for this somewhere but I don''t have a link
and I don''t use this in what I do, you could probably find something
on aspin.com or the like.

Jeff


那么,objRS(co_num)中的内容是什么?我们能在某处看到这个

的演示吗?


-

Aaron Bertrand

SQL服务器MVP
http://www.aspfaq.com/

" HenryW" <一个******* @ discussions.microsoft.com>在留言中写道

新闻:F1 ********************************** @ microsof t.com ...
So, what is in objRS("co_num")? Can we see a demonstration of this
somewhere?

--
Aaron Bertrand
SQL Server MVP
http://www.aspfaq.com/
"HenryW" <an*******@discussions.microsoft.com> wrote in message
news:F1**********************************@microsof t.com...

我正在编写一个表格来显示记录集中的数据而我的问题是,即使你可以看到表格不应该超过那个屏幕大小,确实如此。我的用户必须向右滚动一英里才能看到最右边的栏目......
任何想法?我已经尝试在每个< td>< / td>
上使用宽度说明符并且它没有帮助,我在这里缺少什么?

Response.Write"< ; table border =''1''width ='''100%''>" ''应该这样做!!!!

我正在做正常的事情......

请不要objRS.EOF
Response.Write("< ; tr>< td>< font face =''Verdana''size =''2''>"& objRS(" co_num")
&"< / font> &"< / td>")& vbCr

我知道我应该使用css ..无论如何我上面的表格错了???

I am writing a table out to display data from a recordset and my problem
is that even though as you can see the table should not exceed that screen
size, it does. My users will have to scroll a mile to the right to see the
right most column...
Any ideas? I have already tried using width specifiers on each <td></td>
and it doesn''t help, what am I missing here?

Response.Write "<table border=''1'' width=''100%''>" '' should do the trick!!!!

I am doing the usual..

Do While Not objRS.EOF
Response.Write("<tr><td><font face=''Verdana'' size=''2''>" & objRS("co_num")
& "</font>" & "</td>" ) & vbCr

I know I should be using css.. anyway whats wrong with my table above???



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

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