62,046
社区成员
发帖
与我相关
我的任务
分享
<script type="text/javascript">
function tupian(){
var pwidth=document.documentElement.clientWidth;
var pheight=document.documentElement.clientHeight;
document.getElementById("div1").style.width=pwidth-300;//登录失败时这里提示参数无效
document.getElementById("div1").style.height=pheight-40;//这里有时也会提示参数无效
document.getElementById("denglu").style.marginTop=0-(pheight/2+100);
document.getElementById("denglu").style.marginRight=0-(pwidth/2-320);
}
</script>
<style type="text/css">
#div1
{
filter: progid:dximagetransform.microsoft.alphaimageloader(enabled=true,src= 'images/b.png' ,sizingmethod= 'scale' );
}
#denglu
{
width: 500px;
}
table td
{
border-style: none;
border-color: inherit;
border-width: 0px;
text-align: right;
}
</style>
</head>
<body onload="tupian();" onresize="tupian();">
显示正常时是这样的,登录失败时显示是这样的