表单元素的可见性 [英] Visibility of form elements
问题描述
我可以制作一个< textarea>和< input type ="复选框">看不见?
-
Christopher Benson-Manica |我*应该*知道我在说什么 - 如果我
ataru(at)cyberspace.org |不,我需要知道。火焰欢迎。
在文章< co ********** @ chessie.cirr.com>中,
Christopher Benson-Manica< at *** @ nospam.cyberspace.org>写道:
我可以制作一个< textarea>和< input type ="复选框">隐形?
使用JavaScript和CSS隐藏它们或JavaScript将它们从DOM树中删除它们
>
-
Kris
< kr ******* @ xs4all.netherlands> (nl)
Christopher Benson-Manica< at *** @ nospam.cyberspace.org>写道:
我可以制作一个< textarea>和< input type ="复选框">看不见?
如果它们不可见,它们在功能上是否等同于
type =" hidden"?br />
-
http:// ourdoings .com / 让您的数码照片自行组织。
立即注册,享受7天免费试用。
Bruce Lewis写道:Christopher Benson-Manica写道:
我可以制作一个< textarea>和< input type ="复选框">看不见?
如果它们不可见,它们在功能上是否等同于
type =" hidden"?
没有< input type =" hidden">在HTML中,至少不是我能找到的。
http://www.w3.org/TR/html401/interact/forms.html#h-17.4
也许你意思是display:none与
" visability = hidden"相同?在那种情况下,没有。显示:none从显示中删除
元素,内联或阻止框和所有内容。
Visability = hidden使框不可见,但框仍然占用
布局中的空格。
-
Brian(删除无效给我发电子邮件)
Can I make a <textarea> and an <input type="checkbox"> invisible?
--
Christopher Benson-Manica | I *should* know what I''m talking about - if I
ataru(at)cyberspace.org | don''t, I need to know. Flames welcome.
In article <co**********@chessie.cirr.com>,
Christopher Benson-Manica <at***@nospam.cyberspace.org> wrote:
Can I make a <textarea> and an <input type="checkbox"> invisible?
Use JavaScript and CSS to hide them or JavaScript to remove them from
the DOM tree.
--
Kris
<kr*******@xs4all.netherlands> (nl)
Christopher Benson-Manica <at***@nospam.cyberspace.org> writes:
Can I make a <textarea> and an <input type="checkbox"> invisible?
If they''re invisible, aren''t they functionally equivalent to
type="hidden"?
--
http://ourdoings.com/ Let your digital photos organize themselves.
Sign up today for a 7-day free trial.
Bruce Lewis wrote:Christopher Benson-Manica writes:Can I make a <textarea> and an <input type="checkbox"> invisible?
If they''re invisible, aren''t they functionally equivalent to
type="hidden"?
There is no <input type="hidden"> in HTML, at least not that I can find.
http://www.w3.org/TR/html401/interact/forms.html#h-17.4
Perhaps you mean that "display: none" is the same as
"visability=hidden"? In that case, no. Display: none removes the
element, inline or block box and all, from the display.
Visability=hidden makes the box invisible, but the box still takes up
space in the layout.
--
Brian (remove "invalid" to email me)
这篇关于表单元素的可见性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!