设计并制作网站登录界面,网页效果如下图1所示。当光标移到按钮上时,光标图案和按钮背景颜色会发生变化

html文件

<!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">
*{
    padding:0px;
    margin:0px;
    border:0px;
}
body{
    font-family:"微雅软黑";
}
input:focus{
    outline:none;
}
#login{
    width:450px;
    height:380px;
    border:1px solid #999;
    box-shadow:0px 0px 5px 2px #CCCCCC;
    border-radius:10px;
    margin:40px auto;
}
#login .loginFunc{
    height:48px;
    width:100%;
    margin-bottom:45px;
}
.loginFuncApp,.loginFuncNormal{
    display:inline-block;
    width:100px;
    text-align:center;
    line-height:48px;
    color:#666;
    margin:10px 60px;
}
.loginFuncNormal{
    color:#0a8745;
    border-bottom:2px solid #0a8745;
}
.identity,.password{
    width:328px;
    height:45px;
    margin:10px 60px 10px 38px;
    border:1px solid #CCC;
    padding-left:45px;
}
.identity{
    background:url(../timg1.png) no-repeat 10px center;
}
.password{
    background:url(../timg2.png) no-repeat 10px center;
}
.identity:focus,.password:focus{
    border:1px solid #0A8745;
}
::-webkit-input-placeholder{
    color:#CCC;
}
.info{
    height:20px;
    padding:0 0 10px 40px;
}
.checkbox{
    width:16px;
    height:16px;
    vertical-align:bottom;
}
.info span{
    font-size:14px;
    color:#666;
    vertical-align:bottom;
    margin-left:10px;
}
.info span.help{
    margin-left:190px;
}
.info span a{
    color:#0A8745;
    text-decoration:none;
}
.submit,.button{
    width:172px;
    height:50px;
    border-radius:4px;
    text-align:center;
    font-size:18px;
    cursor:pointer;
}
.submit{
    background:#0A8745;
    color:#FFF;
    margin:20px 20px 0px 40px;
}
.button{
    border:1px solid #a7d4bd;
    color:30a8745;
    background:#E6F3EC;
}
.submit:hover{
    background:#077e3f;
}
.button:hover{
    background:#cee7da;
}
</style>

</head>

<body>
    <div id="login">
        <form name="loginfrom" method="post" action="#">
             <div class="loginFunc">
                <span class="loginFuncApp">二维码登录</span>
                <span class="loginFuncNormal">邮箱账号登录</span>
            </div>
            <input type="text" placeholder="邮箱账号或手机号" class="identity" />
            <input type="password" placeholder="密码" class="password">
            <p class="info">
                <input type="checkbox" class="checkbox" />
                <span>十天内免登录</span>
                <span class="help">
                    <a href="#">忘记密码?</a>
                </span>
            </p>
            <input type="submit" value="登  录" class="submit"> 
            <input type="button" value="注  册" class="button">
        </form>
    </div>
</body>
</html>

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值