扩张和崩溃 [英] expanding and collapsing

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

问题描述

我需要扩展和折叠代码?目标是


能够点击图片图像并展开以显示信息


原因是我有3个表格的信息关于


400x200?我希望能够扩展到我在其中放入多少信息?只需要一个可以将其切断然后打开它的代码吗?


所以


+++++++++++++++++++++++++++++++++ +++++++++++++++++++++++++++++++++++++++信息?信息?信息? +

+信息?信息?信息?信息? +

+信息?信息?信息?信息? +

+信息?信息?信息?信息? +

+信息?信息?信息?信息? +

++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +


所以有我的盒子。我的问题是该盒子有更多的信息,我还有2个以下的盒子,有很多信息,但我希望用户能够扩展信息INSTEAD OF SCROLLING in the BOX?只需能够向下滚动页面,然后再次点击图像,它就会恢复到正常大小,所以如果这个盒子是
400x200开始,我需要它崩溃,让我们说400x900显示信息我怎么能这样做?


另一种解释这个的简单方法就像微软的TREE概念扩展和崩溃一样>

这将是一个帮助。


因为我不知道如何解决这个问题。

解决方案

只需在display:none和display:block之间切换就可以完成你想要的,但它是JavaScript,而不是PHP。这不是PHP的字段。


从PHP论坛移动线程? Ajaxrand



只需在display:none和display:block之间切换就可以完全按照自己的意愿行事了,但它只是JavaScript,而不是PHP。这不是PHP的领域。



eh在这种情况下我真的需要一些帮助我不知道LICK of Java / ajax ...有没有人可以帮助我???


非常感谢!


和抱歉我认为这可以通过PHP完成...


I am in need of an expanding and collapsing code? The goal is

To be able to click a PICTURE IMAGE and expand to show information

Reason for this is I have 3 TABLES of information of about

400x200? that I want to be able to expand to how much information I put in them?. Just need a code that will cut it off and then OPEN it?

So

++++++++++++++++++++++++++++++++++++++++++
+Information? Information? Information? Information? +
+Information? Information? Information? Information? +
+Information? Information? Information? Information? +
+Information? Information? Information? Information? +
+Information? Information? Information? Information? +
++++++++++++++++++++++++++++++++++++++++++

So there is my box. My issue is that the box has more info and I have 2 more boxes below that, that have a lot of info but I want the USER to be able to EXPAND the info INSTEAD OF SCROLLING IN THE BOX? and just be able to scroll down the PAGE then be able to click the image again and it go back to its normal size so if the box was

400x200 to start with and I need it to collapse to lets say 400x900 to display info how could I do this???

Another easy to way to explain this is just like Microsoft with the TREE concepts expanding and collapsing

This would be a grate help.

As I am not sure how to come about this.

解决方案

Simply switching between display: none and display: block will do exactly what you want, but it''s JavaScript, not PHP. This isn''t PHP''s field.


Moving Thread from PHP forum ? Ajaxrand


Simply switching between display: none and display: block will do exactly what you want, but it''s JavaScript, not PHP. This isn''t PHP''s field.


eh in that case I am really going to need some help I do not know a LICK of Java / ajax... could anyone be kind enough to help me out???

Would be greatly appreciated!

and sorry I figured this could be done VIA php as well...


这篇关于扩张和崩溃的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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