使用javascript或html创建表 [英] Create table using javascript or html

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

问题描述

嗨 您能否解释一下或与代码共享,我想制作表格,表格的每一行都类似Subject(title),但单击该行时,通过扩展其长度显示标题(摘要)的描述,当用户单击另一行时它关闭上一个选定行的描述,然后打开第二行的描述.


谢谢

Hi can you please explain or share with code , i want to make table ,On each row of table is something like Subject(title)but clicking the row it show description of the tittle(summary)by expanding its length,when user click another row it close the description of previous selected row and open the description of second row..


Thanks

推荐答案

听起来您想设计类似Accordian面板的东西.如果您使用的是Asp.Net,请查看以下"Asp.Net Ajax Accordian面板" 的链接.

http://www.asp.net/ajaxLibrary/AjaxControlToolkitSampleSite/Accordion/Accordion.aspx

如果您想使用纯Javascript/Jquery进行此操作,请查看以下链接.

http://docs.jquery.com/UI/Accordion

http://jquery.bassistance.de/accordion/demo/

干杯-Rais
It sounds like you want to design something like Accordian panel. If you are using Asp.Net then have a look at below link for "Asp.Net Ajax Accordian panel".

http://www.asp.net/ajaxLibrary/AjaxControlToolkitSampleSite/Accordion/Accordion.aspx

In case if you want to do this using pure Javascript/Jquery then have a look at below links.

http://docs.jquery.com/UI/Accordion

http://jquery.bassistance.de/accordion/demo/

Cheers - Rais


这篇关于使用javascript或html创建表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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