html 5 每日代码

<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=yes" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black" />
<meta name="format-detection" content="telephone=no" />
<meta name="format-detection" content="email=no" />
<link rel="stylesheet" href="../css/openAccent/login.css">
<script type="text/javascript" src="../js/jquery-1.9.1.min.js" ></script>
<title>登录</title>
</head>

<body>
    <script type="text/javascript" src="../js/WapRoot.js" ></script>
    <header class="more_header header">
       <a href="" class="left"><img src="../img/images/home_return@2x.png" alt="" /></a>
            登录
        <a href="###" class="exit"></a>
    </header>
    <section>
       <div><img src="../img/index_img/touxiang@2x.png" alt="" /></div>
       <div><span><img src="../img/images/login_mima@2x.png" alt="" /></span><span><input type="text" placeholder="请输入登录密码"/></span></div>
    </section>
    <footer><a href="">&nbsp;</a></footer>
    <a href="phone_test.html"><p>切换账号</p></a><p class="t_right">忘记登录密码?</p>
    <div class="logo"><img src="../img/public_img/logo.png" alt="" /></div>
</body>

</html>

基础的header在css中进行设置

header {
    height: 44px;
    line-height: 44px;
    text-align: center;
    border-bottom: 1px solid #dedede;
    font-size: 18px;
    background: #fff;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    z-index: 5;

}

.left {
    float: left;
}

.right {
    float: right;
}

a.left {
    font-size: 18px;
    text-align: left;
    color: #999;
    font-weight: bold;
    position: absolute;
    left: 15px;
}

a.left img {
    height: 18px;
    vertical-align: middle;

}

img.right {
    width: 20px;
    margin-top: 14px;
    cursor: pointer;
    padding-right: 15px;
}

a.right {
    font-size: 12px;
    color: #666;
    position: absolute;
    right: 15px;
    top: 3px;
    padding-right: 15px;
}

.main {
    position: absolute;
    top: 45px;
    left: 0;
    bottom: 0;
    overflow-y: auto;
    width: 100%;
}

  • 2
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值