Home > Web Front-end > HTML Tutorial > HTML控件设置 visible="false" 但还是显示了_html/css_WEB-ITnose

HTML控件设置 visible="false" 但还是显示了_html/css_WEB-ITnose

WBOY
Release: 2016-06-21 09:44:54
Original
1783 people have browsed it

HTML 控件 visible

 我有一个按钮

在运行时查看代码是这样的,但为什么还是显示出来了呢?

回复讨论(解决方案)



控制显不显示,是在样式里设置  obj.style.display="none"  

style

display:none  

visibility:hidden  这个会依然保留元素所在位置

visible="false"应该是.net 加了runat=server之后起作用的

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template