日期:2014-05-18  浏览次数:20636 次

jsp button 显示问题请教
各位大侠:
        如果用css设置button的style,使button给人的感觉就是不存在。
        谢谢!!

------解决方案--------------------
DIV 套呗,以下就隐藏了!
<div class= "obj " id= "divBdKbnNm " style= "width:40px; left:172px; top:375px;visibility: hidden ">
<input type= "button " name= "btnGam " tabindex= "2 " value= "... "
pattern= "none " revokectrl= "none " orteus= "true ">
</div>
//JS CONTROL
function disBdKbn() {
document.getElementById( "divBdKbnNm ").style.visibility= "visible ";
}

切换CSS
aThisObj--DIV NAME
aThisOutObj---CSS NAME
function disBdKbn(aThisObj,aThisOutObj) {
document.getElementById(aThisObj).className=aThisOutObj;
}

------解决方案--------------------
什么问题啊 不存在 还要button 干嘛啊
------解决方案--------------------
不知道设置成无边框,背景色和底色相同行不行。
如果你要直接把按钮隐藏,可以设置其display属性或者visibility属性