折叠封闭空间的隐藏形式 [英] Folding closed space for a hidden form

查看:94
本文介绍了折叠封闭空间的隐藏形式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在创建一个隐藏的表单,直到有人点击链接打开它。

我可以隐藏表单,但屏幕上只有一个很大的空白区域表单隐藏的地方是


表格没有显示时,有没有办法关闭空格?目前我正在使用< div>并隐藏

的可见性,然后在点击链接时使其可见:


< div id =" form" style =" visibility:hidden;等等......

I''m making a form that is hidden until someone clicks on a link to open it.
I can hide the form, but there is just a large white space on the screen
where the form is hiding. Is there any way to close the white space when
the form is not showing? At the moment I''m using a <div> and hiding the
visibility, and then making it visible when the link is clicked:

<div id="form" style="visibility: hidden; etc...

推荐答案

你好,


web_design schrieb:
Hello,

web_design schrieb:
我正在创建一个隐藏的表单,直到有人点击链接打开它。
我可以隐藏表单,但屏幕上只有一个很大的空白区域
表单隐藏。
表格没有显示时有没有办法关闭空格?目前我正在使用< div>并隐藏
可见性,然后在单击链接时使其可见:

< div id =" form" style =" visibility:hidden;等...
I''m making a form that is hidden until someone clicks on a link to open it.
I can hide the form, but there is just a large white space on the screen
where the form is hiding. Is there any way to close the white space when
the form is not showing? At the moment I''m using a <div> and hiding the
visibility, and then making it visible when the link is clicked:

<div id="form" style="visibility: hidden; etc...




只需将divs显示设置为none而不是隐藏的可见性,这就是全部。


一些背景:Visibilty只是让div在没有占据房间的情况下隐形,

如果它可见,div会占用。 div是一个块标签,所以你可以通过将display设置为block或none来打开和关闭div。



Just set the divs display to none instead of visibility to hidden, that''s all.

Some Background: Visibilty just makes the div invisible without taking the room,
the div would take if it would be visible. A div is a block-Tag, so you can
switch a div on and off by setting display to block or none.




" Martin Kurz" <在** @ martinkurz.in-berlin.de>在消息中写道

news:11 *************** @ elch.in-berlin.de ...

"Martin Kurz" <in**@martinkurz.in-berlin.de> wrote in message
news:11***************@elch.in-berlin.de...
你好,

web_design schrieb:
Hello,

web_design schrieb:
我正在创建一个隐藏的表单,直到有人点击链接打开
它。
我可以隐藏表格,但屏幕上只有一个大的空白区域,表格隐藏在那里。
表格没有显示时有没有办法关闭空格?目前我正在使用< div>并隐藏
可见性,然后在单击链接时使其可见:

< div id =" form" style =" visibility:hidden;等...
I''m making a form that is hidden until someone clicks on a link to open
it.
I can hide the form, but there is just a large white space on the screen
where the form is hiding. Is there any way to close the white space when
the form is not showing? At the moment I''m using a <div> and hiding the
visibility, and then making it visible when the link is clicked:

<div id="form" style="visibility: hidden; etc...



只需将div显示设置为none而不是隐藏的可见性,即'


一些背景: Visibilty只是让div隐藏而不占用
房间,如果它可见,div会占用。 div是一个块标签,所以你可以通过将display设置为block或none来打开和关闭div。



Just set the divs display to none instead of visibility to hidden, that''s
all.

Some Background: Visibilty just makes the div invisible without taking the
room,
the div would take if it would be visible. A div is a block-Tag, so you
can
switch a div on and off by setting display to block or none.




谢谢对于那个提示。它很棒。


你知道是否有一种简单的方法可以将我的链接设置为*切换*显示屏?

现在我有一个链接显示表单,但要关闭它,我必须在表单上单独生成一个

单独的按钮。我希望有人可以点击

链接打开它,然后再次点击关闭它。


这是我的链接:

< a href =" javascript ://" onClick =" showform(''commentform'')">



Thanks for that tip. It works great.

Do you know if there is an easy way to set my link to *toggle* the display?
Right now I have a link that shows the form, but to close it I had to make a
separate button on the form. I''d prefer that someone could click on the
link to open it, and then click again to close it.

This is my link:
<a href="javascript://" onClick="showform(''commentform'')">


web_design写道:
web_design wrote:
有什么方法可以关闭白色
表格没有显示的空间?目前我正在使用< div>并隐藏
可见性,然后在单击链接时使其可见:

< div id =" form" style =" visibility:hidden;等...
Is there any way to close the white space when
the form is not showing? At the moment I''m using a <div> and hiding the
visibility, and then making it visible when the link is clicked:

<div id="form" style="visibility: hidden; etc...




如果你喜欢yoyo efects:


< did id =" form"风格= QUOT;能见度:隐藏;显示:无" ...>


onclick =" with(document.getElementById(''form'')。styl e){

visibility =''可见'';

display =''block'';

}"

-

Stephane Moriaux et son [moins] vieux Mac



if you like yoyo efects :

<did id="form" style="visibility:hidden;display:none" ...>

onclick="with(document.getElementById(''form'').styl e){
visibility=''visible'';
display=''block'';
}"
--
Stephane Moriaux et son [moins] vieux Mac


这篇关于折叠封闭空间的隐藏形式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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