javascript 里面 隐藏页面控件的方法
疯子的紫梦
posted @ 2009年10月04日 23:12
in JavaScript
, 1426 阅读
<script language="javascript"> function hidd1(){ div1.style.visibility="hidden";} function hidd2(){ div2.style.display="none";} </script> <div id="div1" onclick="hidd1()" style="width:200px;height:300px;background:#F00;">div1</div> <div id="div2" onclick="hidd2()" style="width:200px;height:300px;background:#00F;">div2</div> <div style="width:200px;height:300px;background:#F30;">div3</div>
visibility 占位并隐藏 值:visable:显示 hidden:隐藏 inherit:继承父对象的可见性
display 不占位 隐藏
javascript 函数命名不能与页面里面其它元素的name id 相同
2023年9月15日 17:00
SCERT Bihar 2nd Class Provides the Syllabus for All the This new Syllabus are Designed Strategically by a Team of Subject Experts and are Prescribed by the Bihar State Government, Bihar Primary level Syllabus 2024 for Bihar 2nd Syllabus 2024 the children of Bihar has been developed with the supervision of the Bihar State Textbook Publishing Corporation Ltd, Patna Altogether Seventeen Subjects Syllabus Covering Mathematics, Hindi Language, English as Second Language and Environmental Science have been Prepared, These Syllabus are Freely Distributed under SSA Programme to the Primary Children of Bihar.
2024年1月11日 19:32
JNANABHUMI AP provides all the latest educational updates and many more. The main concept or our aim behind this website has been the will to provide resources with full information on each topic jnanabhumiap.in which can be accessed through the Internet. To ensure that every reader gets what is important and worthy about the topic they search and link to hear from us.