如何做到最大化和最小化i框架 [英] how to do it to maximize and minize the i frame

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

问题描述


这是我的代码
< asp:Content ID ="Content1" ContentPlaceHolderID ="ContentPlaceHolder1" Runat ="Server">
< script type ="text/javascript">
$(''#dispframe'').click(function()
{
$(''#iFrameWin'').toggle();
$(''#Button3'').text =-"

});
< iframe
id ="I1" frameborder ="0" vspace ="0" hspace ="0"
marginwidth ="0" marginheight ="0"
scrolling ="yes" src ="AssignToCompany.aspx" name ="I1"
style ="width:672px; height:210px">

</iframe>





< asp:按钮ID ="dispframe" runat =服务器" Text =按钮"宽度="108px"/>








它可以完美切换,但是我需要的是在扩展框架时需要显示-东西,在压缩框架时需要显示+怎么做.

解决方案

(``#dispframe'').click(function()
{


(``#iFrameWin'').toggle();


(''#Button3' ').text =-"

});
< iframe
id ="I1" frameborder ="0" vspace ="0" hspace ="0"
marginwidth ="0" marginheight ="0"
scrolling ="yes" src ="AssignToCompany.aspx" name ="I1"
style ="width:672px; height:210px">

</iframe>





< asp:按钮ID ="dispframe" runat =服务器" Text =按钮"宽度="108px"/>








它可以完美切换,但是我需要的是在扩展框架时需要显示-的东西,在压缩框架时需要显示+的操作.


hi ,
this is my code
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<script type="text/javascript">
$(''#dispframe'').click(function ()
{
$(''#iFrameWin'').toggle();
$(''#Button3'').text="-"

});
<iframe
id="I1" frameborder="0" vspace="0" hspace="0"
marginwidth="0" marginheight="0"
scrolling="yes" src="AssignToCompany.aspx" name="I1"
style="width: 672px; height: 210px">

</iframe>





<asp:Button ID="dispframe" runat="server" Text="Button" Width="108px" />








it toggles perfectly but what i need is when the frame is expanded i need the - thing to be displayed and when the frame is compressed i need the + to be displayed how to i do it .

解决方案

(''#dispframe'').click(function ()
{


(''#iFrameWin'').toggle();


(''#Button3'').text="-"

});
<iframe
id="I1" frameborder="0" vspace="0" hspace="0"
marginwidth="0" marginheight="0"
scrolling="yes" src="AssignToCompany.aspx" name="I1"
style="width: 672px; height: 210px">

</iframe>





<asp:Button ID="dispframe" runat="server" Text="Button" Width="108px" />








it toggles perfectly but what i need is when the frame is expanded i need the - thing to be displayed and when the frame is compressed i need the + to be displayed how to i do it .


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

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