可折叠列表,其中文本位于带标题的列中(例如论坛) [英] Collapsable list where text is in columns with headers (like a forum for example)
问题描述
嗨
我想创建一个像我们在新闻阅读器中看到的那样的可缩放列表,或者在论坛上创建
。
- 基本上,任何数量级别可达10级(即需要多于几美元的价格)
- 能够独立扩展/折叠每个分支
- 3列,其中第2列和第3列是固定宽度并在所有级别对齐
带有列标题的
(这如果记录超过几个级别,第1列的空间可能就没有了可能会变得难看。
我看着住宿树木控制(即
http://www.dynamicdrive.com /dynamicindex1/navigate1.htm )在每个li标签中放一个3x1
表,但a)列不排成一行b)我很漂亮>
肯定这是一个非常愚蠢的想法; o)
任何人都有一个例子或指向类似的东西?
谢谢
马克
< blockquote> 9月26日下午4:26,David Mark< dmark.cins ... @ gmail.comwrote:
哎呀。省略了内存泄漏清理。
global.onunload = function(){
i = 0;
l = anchors.length ;
while(i< l){anchors [i ++]。onclick = null; }
};
在这一行前行:
el.style.visibility =''可见'';
谢谢Mark
今天我来看看吧。由于存在溢出文本等问题,我已经放弃了对于
第2列和第3列的列对齐的想法。
感谢内存清理位同样。我已经编程了好几年
但很少上网,所以我会错过那个,直到它让我在
背面咬我。
再次感谢
Mark
" David Mark" < dm *********** @ gmail.comwrote in message
news:11 ******************* ***@d55g2000hsg.googlegr oups.com ...
9月26日下午4:26,David Mark< dmark.cins ... @ gmail .comwrote:
哎呀。省略了内存泄漏清理。
global.onunload = function(){
i = 0;
l = anchors.length ;
while(i< l){anchors [i ++]。onclick = null; }
};
在这一行前行:
el.style.visibility =''可见'';
David Mark写道:
[样本申请]
好的。
Hi
I''m looking to create a colapsable list like what we see in a news reader or
on a forum.
- Basically, any number of levels up to 10 (i.e. more than whats likely to
be needed)
- Able to expand/collapse each branch independantly
- 3 columns, where columns 2 and 3 are fixed width and aligned at all levels
with column headers (this is where it could get ugly as there may not be
room for column 1 if the record is more than a few levels deep.
I looked at bodging a tree control (namely
http://www.dynamicdrive.com/dynamicindex1/navigate1.htm) by dropping a 3x1
table within each li tag but a) the columns don''t line up and b) I''m pretty
sure that was a really stupid idea ;o)
Anyone got an example or pointer to something similar?
Thanks
Mark
On Sep 26, 4:26 pm, David Mark <dmark.cins...@gmail.comwrote:
Oops. Left out the memory leak cleanup.
global.onunload = function() {
i = 0;
l = anchors.length;
while (i < l) { anchors[i++].onclick = null; }
};
Goes right before this line:
el.style.visibility = ''visible'';
Thanks Mark
I''ll take a look today. I had given up on the idea of column alignment for
columns 2 and 3 as there were issues with overflow text etc.
Thanks for the memory cleanup bit as well. I''ve been programming for years
but rarely for the web so I would have missed that one till it bit me on the
backside.
Thanks again
Mark
"David Mark" <dm***********@gmail.comwrote in message
news:11**********************@d55g2000hsg.googlegr oups.com...On Sep 26, 4:26 pm, David Mark <dmark.cins...@gmail.comwrote:
Oops. Left out the memory leak cleanup.
global.onunload = function() {
i = 0;
l = anchors.length;
while (i < l) { anchors[i++].onclick = null; }
};
Goes right before this line:
el.style.visibility = ''visible'';
David Mark wrote:
[a sample application]
Good one.
这篇关于可折叠列表,其中文本位于带标题的列中(例如论坛)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!