代码如下:
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
<script type="text/javascript">
function shwoLogin() {
var loginDiv = document.getElementById("loginDiv");
loginDiv.style.display = '';
}
function hideLogin() {
var loginDiv = document.getElementById("loginDiv");
loginDiv.style.display = 'none';
}
</script>
</head>
<body>
<a href="javascrpt:showLogin()">登录</a>
<div style="position:absolute;top:200px;left:200px;border-style:solid;border-color:Blue;border-width:thin;display:none;" id="loginDiv">
<img src="images/close.jpg" style="float:right"/>
<table>
<tr><td><label for="userame">用户名:</label></td><td><input type="text" id="username" /></td></tr>
<tr><td><label for="password">密码:</label></td><td><input type="password" id="password" /></td></tr>
</table>
</div>
</body>
</html>
点击下面登录按钮
就出现这个问题
|