网页前端设计

1、账号登入设计

     使用网页HTML5设计出账号登入设计,分别使用了布局设计:

(1)<h1></h1>标题标签

(2)<hr>换行标签

(3)<input>输入框标签

1.1html代码:

<a href="/login"><img src="img/logo.png" class="fl" alt="牛耳教育网" /></a>
<body background="img/bg.png">
<div class="zjm" >
    <h2>账号登入</h2>
    <hr width="406" color="black" ></br>
    <form>
        <div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;账&nbsp;号:&nbsp;&nbsp;&nbsp;
            <input type="text" id="name" class="head" placeholder="请输入账号">
        </div></br>
        <div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;密&nbsp;&nbsp;码:&nbsp;&nbsp;&nbsp;
            <input class="keyboard" type="password" id="nm" placeholder="请输入密码" required/>
        </div>
        <div id="btn" align="center" >
            <input type="submit" value="确定" class="submitbtn">
        </div>
    </form>
</div>
<div class="bigBox">
    <p>登入/注册即表示你同意&nbsp;<a href="#">用户协议 &nbsp;和&nbsp;隐私条款&nbsp;忘记密码?</a></p>
</div>

1.2css代码

<style>
        .zjm{
            width: 406px;
            height: 300px;
            margin: 100px auto;
            border: 1px solid wheat;
            border-top-left-radius: 10px;
            border-top-right-radius: 10px;
            border-bottom-left-radius: 10px;
            border-bottom-right-radius: 10px;
            background: white;
        }
        h2{
            color: #ffb51a;
            text-align: center;
        }
        input#name {
            width: 250px;
            height: 40px;
            border: 1px solid #0a070e;
            border-top-left-radius: 10px;
            border-top-right-radius: 10px;
            border-bottom-left-radius: 10px;
            border-bottom-right-radius: 10px;
        }
        input#nm {
            width: 250px;
            height: 40px;
            border: 1px solid #0a070e;
            border-top-left-radius: 10px;
            border-top-right-radius: 10px;
            border-bottom-left-radius: 10px;
            border-bottom-right-radius: 10px;
        }
        .submitbtn {
            margin: 40px;
            padding: 0px;
            display: block;
            outline: none;
            border: none;
            width: 300px;
            height: 30px;
            color: white;
            font-weight: 700;
            border-radius: 5px;
            text-align: center;
            background-color: #f31527;
        }
        .bigBox p{
           position: revert;
            top: 0px;
            text-align: center;
            color: #666666;
        }
        .bigBox a{
            color: blue;
            font-weight: bold;
            text-decoration: none;
        }
    </style>

2.效果

 

  • 3
    点赞
  • 13
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值