如题
比如怎样让一个Label可见与不可见
比如怎样让一个Label可见与不可见
解决方案 »
- 问个基础问题,CodeBehind和CodeFile的区别,还有inherits是怎么使用的
- .net特性一问
- asp.net怎么实现这样执行存储过程: 'exec Proc_InsertShopCart '51','13','23','12.32'' ?
- FormView问题,请帮忙!!!!!!!!!!
- sqlServer2005中的触发器出问题了?
- 求助!!!怎么样能让tooltip停留的时间长一点???
- table中放在<TD align="center"> <TD>中的控件缩在一起无法正常显示??
- Mini Crm 系统
- 我的TreeView不能树形显示为什么????
- 在datagrid中更新时间的问题!有一个从索引 0 处开始的未知字?!
- 请教:在B/S里怎样定义一个在一个页面里使用的局部变量
- 请教:配置错误
document.all.lblID.style.display=""//显示
谢谢 zhangqiushui(水)
如果把style="DISPLAY: inline;设置为:style="DISPLAY: none;
那这个控件会自动换行(就是两个相同的label放在同一行中)
怎样解决这个问题呢???????
我主要是想在一个Table的一格里放几个Label
这几个Label要在同一行上显示
但是我试了上面的方法
这几个Label都会另起一行来显示
而且用鼠标拖也没用
而把style="DISPLAY: none;改成style="DISPLAY: inline;
这几个Label又会在同一行上显示了
alert('我一直来就执行了')
</script>
window.onbeforeunload = function()
{
alert("页面加载完毕,自动启动此脚本");
}
</script>
window.onbeforeunload = function()
{
alert("页面加载完毕,自动启动此脚本");
}
</script>
实现是可以实现了
但运行这个脚本发生了一个错误
<form onload="aaa()";>
</form>
function aaa()
{
xxx.style="display:none";
}
我这里怎么没有
{
whichEl =document.getElementById("Table1");
whichE2 =document.getElementById("IMG1");
if (whichEl.style.display == 'none')
{
whichEl.style.display = '';
whichE2.src='image/yc2.jpg';
}
} }
else
{
whichEl.style.display = 'none';
whichE2.src='image/xianshi4.jpg';
}
}