铁人赛 Day18-- 继续我们的登入者介面吧

前言

来为我们的登入者介面 banner 和 footer 吧!!

Banner

我的Banner很简单,一个Div搞定,因为我也不想给太多复杂的功能,所以有最基本的功能就可以了

HTML

<div class="banner">
    <nav class="list1">
        <a href="" class="text">开始订餐</a>
        <a href="" class="text">我的订单</a>
    </nav>
</div>

CSS

.banner{
    background-color: darkkhaki;
    position: relative;
    width: 100%;
    height: 80px;
}
.banner .list1{
    position: absolute;
    right: 50px;
    width: auto;
    font-weight: 900;
    font-size: 20px;
    margin: 21px 0;
}
.banner .list1 a{
    text-decoration: none;
    color: #000;
    padding: 0 20px;
}

Body

放上昨天做好的登入介面

HTML

<div class="login">
    <h2>会员登入</h2>
    <div class="login-input">
        <div class="text account">
            <p>帐号 :</p>
        </div>    
        <div class="input account1">
            <input placeholder="请输入帐号" name="username" id="username" type="text">
        </div>
    </div>
    
    <div class="input"></div>    
        <div class="text password">
            <p>密码 :</p>
        </div>    
    <div class="input password1">
        <input placeholder="请输入密码" name="password" id="password" type="text">
        <p>
            <input type="checkbox" name="rememberme"  id="rememberme" value="true" 
            class="checked">记住我的帐号密码
        </p>
        <div class="login-buttom">
            <button type="submit">登入</button>
            <a href="">忘记密码?</a>
        </div>
    </div>

        <div class="join">
            <hr size="5"/>
            <p >还没有会员帐号,注册帐号免费又容易</p>
            <p align="center">
                <a href="joinus.php" ><--马上申请会员--></a>
            </p>
        </div>                    
    </div>
</div> 

CSS

.login{0
    background-color:#fff ;
    width: 300px;
    height: 400px;
    border: #000 1px solid;
    position: relative;
    top: 12%;
    left: 70%;
}
.login h2{
    text-align: center;
    font-weight: 900;
}
.login-buttom{
    position: absolute;
    left: 50px;
    margin: 10px 0 0;
}
.login-buttom a{
    padding: 0 0 0 20px;
}
.input{
    padding: 0 0 0 50px;
}
.password1 p{
    margin: 0;
}
.join{
    position: absolute;
    right:  15px;
    bottom: 10%;
}
.text p{
    margin: 0 0 0 50px;
    font-weight: 900;
}

Footer

Footer一样也是一个Div搞定,加上一句Copyright版权宣告

HTML

<div class="flooter">
    <div class="copyright">
        <h2>© Copyright by 2021 Isaac</h2>
    </div>
</div>

CSS

.flooter{
    background: darkkhaki;
    position: relative;
    width: 100%;
    height: 100px;
}
.copyright{
    text-align: center;
    padding: 55px 0 0;
}
.copyright h2{
    font-size: 20px;
    font-weight: 900;
}

Copyright

最精简的写法就是这样:

© [year] [owner]

说明如下:

  • [©] :简单用一个©代表
  • [year] :可以输入年份。
  • [owner]:可以输入作者或是公司名称。

那想要有 © 这个符号,只需要使用 &copy 即可


<<:  [Day17] static静态方法

>>:  【後转前要多久】# Day03 HTML - BODY内的东西

Day12 什麽是Sass?

大家好,我是乌木白,今天要来和大家来讲解Sass。 Sass? Sass 是一个管理 Css 的语...

Sass @import DAY34

今天我们要来学习如何把Sass切分支许多档案 这样会使我们比较容易管理 @import(汇入) 可将...

30天轻松学会unity自制游戏-制作PlayerHP

敌机会攻击後,考量游戏难易度,让玩家飞机能多扛几下子弹,先给玩家一个HP血条,等血量见底再说,在Hi...

[Day27] Tableau 轻松学 - TabPy 除错技巧

前言 相信走到这里,读者应该有办法依需求在 Tableau Desktop 中活用 TabPy。但还...

Day 05 - Ramda

yo, what's up Ramda 是一个 Functional Programming 的函式...