练习登录框,加油加油

原创 2019-06-23 20:56:13 249
摘要:<!DOCTYPE html><html><head> <meta charset="utf-8"> <title>lesson2练习登录框</title> <style type="text/css"> * {margin: 0px; padding: 0px;}.Log

<!DOCTYPE html>

<html>

<head>

<meta charset="utf-8">

<title>lesson2练习登录框</title>

<style type="text/css">

* {margin: 0px; padding: 0px;}

.Loginbox {width: 200px; height: 200px; background-color: #ccc; margin: 0px auto;}

input{width: 180px; height: 30px; margin: 20px 10px 0px 10px; border: none; }

button{width: 180px; height: 30px; margin: 20px 10px 0px 10px ;border:none; background-color: #1c86ee; color: #fff; margin-bottom: 20px;}


</style>

</head>

<body>

    <div class="Loginbox">

    <form method="post" action="#">

    <input type="text" name="username" placeholder="请输入用户名"><br>

    <input type="password" name="password" placeholder="请输入密码"><br>

            <button>登录</button><br>

            <a href="#">注册</a>

            <a href="#">直接登录</a>

    </form>

    </div>

</body>

</html>


批改老师:天蓬老师批改时间:2019-06-24 10:28:40
老师总结:表单元素之间用<br>换行, 大多用在临时的案例演示中, 推荐用<div>或者 <p>来代替

发布手记

热门词条

关于我们 免责申明 举报中心 意见反馈 讲师合作 广告合作 最新更新
php中文网:公益在线php培训,帮助PHP学习者快速成长!
关注服务号 技术交流群
PHP中文网订阅号
每天精选资源文章推送

Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号