登录页面设计(一)

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>登录</title>
<style type="text/css">
body{
	font-family:"MS Serif";
	font-size:14px;
	color:#FFF;
	background-image:url(../../images/ocean.jpg);
	background-repeat:no-repeat;
	}
a{
	color:#FFF;
}
.loginPanel{
	margin:10%;
	height:170px;
	border:#FFF 1px solid;
	}

.loginBtn{
	margin:5px;
	width:100%;
	color:#FFF;
	text-align:center;
	background-color: #0CF;
	font-weight:bold;
	cursor:pointer;
	}	
	
.input{
	color:gray;
	width:90%;
	line-height:normal;
	}
</style>

<script type="text/javascript" src="../js/jquery-1.7.min.js"/>
<script type="text/javascript" >
 $(document).ready(function(){
    $("div.loginBtn").mouseover(function (){  
             $(this).css("background-color","#000");   
    }).mouseout(function (){  
            $(this).css("background-color","#FFF");  
    }) 
    $("div.login").click(function(){
		    alert("您点击了要购买的按钮!");
	});
})
</script>

</head>

<body>
<div class="loginPanel" >
 <form  action=""  method="post">
   <table align="center" style="height:150px; width:30%; margin-top:20px;">
       <tr>
       <th align="left">用户名:</th>
       <td align="right">
       		<input type="text"  class="input" value="请输入手机号或用户名"/>
       </td></tr>
       <tr>
       <th  align="left">密    码:</th>
       <td align="right">
          <input type="text" name="password"b class="input" value="请输入6-20位密码"/>
       </td>
       </tr>
       <tr>
       <td align="left"> 
         <input type="checkbox" name="save" id="save" οnclick="save_ck(this);"
               checked= "checked">记住密码 
         </td>
         <td align="right"><a href="">忘记密码?</a></td>
       </tr>
        <tr align="center">
        <td colspan="2"><a href="">新用户注册</a></td>
         <td ></td>
        </tr>
        <tr align="center">
          <td colspan="2"><input id="loginBtn" class="loginBtn" align="center" value="登录" type="submit" /></td>
           <td ></td>
        </tr>
   </table>
 </form>
</div>
</body>
</html>
效果图如下:
  • 0
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值