如何隐藏和取消隐藏框架 [英] How to hide and unhide the frame

查看:171
本文介绍了如何隐藏和取消隐藏框架的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的网页上有2个框架,如果我隐藏了正确的框架,另一个框架应该获得整个屏幕,还应该有一个取消隐藏按钮,反之亦然。

提前谢谢。

解决方案

您可以使用客户端框架或库来执行此操作。例如,您可以使用jQuery隐藏或显示iframe。



 


' button')。点击( function (){
// 使用

显示或隐藏

('#iframe1')。show()等等
});





然后你可以使用一些基于CSS的样式技术来改变元素的宽度(iframe)


i have 2 frames in my web page,if i hide the right frame the other frame should acquire the whole screen and there should also be a unhide button for vice-versa.
Thanks in advance.

解决方案

You can use the client-side frameworks or libraries to do this. For example, you can use jQuery to hide or show the iframes.


('button').click(function() { // Show or hide using


('#iframe1').show() and so on });



Then you can use some CSS based styling techniques to change the width of the elements (iframe).


这篇关于如何隐藏和取消隐藏框架的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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