如何用 javascript 改变 Visible属性 ,但是不想用----document.getElementByID("TextBox1").style.displye="none"----
解决方案 »
- 创建文件夹的问题,急、急、急..................
- 一个奇怪的问题
- .net做的网站打开比较慢什么好的方法解决.
- 谁能给个Exchange 2000 server 下载地址??
- 求救,在线等!!!
- 关于博客的问题
- 怎样让DataGrid里面的控件响应事件?
- asp.net 调用 javascript ?
- 请问如何在程序中往datagrid里面动态的添加模板列,并且在模板列中加入某个控件
- 我的这棵树怎么没有显示呢?请高手过招……在线
- 有些代码里面总有get return
- FCK 2.6在开发环境中上传图片正常,发布后,上传到服务器上,图片上传能已经执行,但进度条一直显示,无法回到编辑状态,请高手出招帮助解决!!
document.getElementByID("DropDownLoad1").style.displye="none"
可是当我
document.getElementByID("DropDownLoad1").style.displye="true"
的时候我的 DropDownLoad1 就好像他前面加了一个<br>一样错位了
document.getElementByID("DropDownLoad1").style.displye="none"
可是当我
document.getElementByID("DropDownLoad1").style.displye="true"
的时候我的 DropDownLoad1 就好像他前面加了一个<br>一样错位了
隐藏 document.getElementByID("DropDownLoad1").style.displye="none" 显示document.getElementByID("DropDownLoad1").style.displye="inline" 或者为空都可以
LZ是不是要灰掉该控件?那是Enable属性 对应Javascript的 document.getElementByID("TextBox1").disabled="disabled"
yourcontrol.style.visibility = false;
yourcontrol.style.visibility = 'hidden';Set it to 'visible' to show yourcontorl.
<head runat="server">
<title>无标题页</title>
<script type="text/javascript">
function RemoveElement()
{
var div = document.getElementById("holder");
var test = document.getElementById("test");
div.removeChild(test);
}
</script>
</head>
<body>
<form id="form1" runat="server">
<div id="holder">
<div id="test">12312312321</div>
<input type="button" onclick="RemoveElement()" value="test" id="as" />
</div>
</form>
</body>
</html>
注意,是inline,如果是block则会独占一行显示。
他们是不同的 dispaly 会空出位子 后面一个会保留 属性也不一样
第一个是 blcok none 第二个是 visiable hidden