当前位置: 首页 > article >正文

基于web前端对简书页眉的开发及登陆的跳转

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>简书</title>
    <link rel="stylesheet" href="./font/iconfont.css">
    <style>
        *{
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        .header{
            height: 58px;
            width: 100%;
            background-color: #fff;
            border-bottom: solid 1px #f0f0f0;

            display: flex;
            justify-content: center;
        }
        .content{
            width: 1400px;
            height: 58px;
            /* background-color: #ccc; */

            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 20px;
        }
        .content img{
            height: 50px;
            width: auto;
        }
        .nav{
            width: 1000px;
            height: 58px;
            /* background-color: antiquewhite; */

            display: flex;
            justify-content: space-between;
        }
        .nav .left{
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 20px;
            font-weight: 400;
            width: 700px;
        }
        .nav .left div:nth-of-type(1){
            color: #d57561;
        }
        .nav .left [type="text"]{
            width: 240px;
            height: 40px;
            border-radius: 20px;
            color: black;
            font-size: 18px;
            padding-left:15px;
            outline: none;
            background-color:#eee;
            border: none;
        }
        .left i{
            font-size:30px;
            font-weight: 500;
            margin-right: 6px;
        }
        .left div:nth-of-type(5){
            position: relative;
        }
        .left div:nth-of-type(5) i{
            position: absolute;
            right: 10px;
            top: 8px;
        }
        .nav .right{
            display: flex;
            justify-content: space-between;
            align-items: center;
            color: #888;
            font-size: 18px;
            width: 100px;
        }
        .right i{
            font-size: 26px;
        }
        .reg{
            width: 80px;
            height: 40px;
            border-radius: 17px;
            background-color: white;
            border:solid 1px #d57561;
            color: #d57561;
            letter-spacing: 2px;
            font-size: 18px;
        }
        .edit{
            width: 100px;
            height:40px ;
            border-radius: 17px;
            background-color:#d57561 ;
            color:white;
            border: none;
            font-size: 18px;
        }
    </style>
</head>
<body>
    <div class="header">
        <div class="content">
            <img src="./相对路径资料/jianshu.png" alt="">
            <div class="nav">
                    <div class="left">
                        <div><i class="iconfont icon-zhinanzhen"></i>首页</div>
                        <div><i class="iconfont icon-ic_system_update_px"></i>下载APP</div>
                        <div><i class="iconfont icon-huangguan"></i>会员</div>
                        <div><i class="iconfont icon-daimawenjian"></i>IT技术</div>
                        <div>
                            <input type="text" placeholder="搜索"><i class="iconfont icon-sousuo"></i>
                        </div>
                    </div>
                    <div class="right">
                        <div><i class="iconfont icon-24gl-textTransform"></i></div>
                        <div><a href="./登陆界面.html">登陆</a></div>
                    </div>
            </div>
            <div class="btns">
                <button class="reg">注册</button>
                <button class="edit">写文章</button>
            </div>
        </div>
    </div>
</body>
</html>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>登陆界面</title>
</head>
<body>
    <h3><img src="./相对路径资料/jianshu.png" alt=""></h3>
    
    <hr>
    
    <form action="./作业1.html" method="get">
        <table width="500" border="1" cellpadding="10" align="center">
            <tr align="center">
                <td colspan="2">请登录</td>
            <tr><td align="right"><label for="account">手机号或者邮箱</label></td>
                <td><input type="text" id="account" placeholder="手机号或者邮箱"/></td>
            </tr>
        <tr><td align="right"><label for="password">密码:</label></td>
            <td><input type="text" id="password" placeholder="请输入密码"></td>
        </tr>
        <tr>
            <td align="right"><label for="apassword">确认密码:</label></td>
            <td><input type="text" id="apassword" placeholder="请确认密码"></td>
        </tr>
        <tr>
            <td colspan="2" align="center">
                <input type="reset" value="点此清空数据">
                <input type="submit" value="登陆">
            </td>
        </tr>
        </table>
    </form>
</body>
</html>

实现效果如下:点击跳转到登陆页面

点击跳转到主页


http://www.kler.cn/a/541447.html

相关文章:

  • Windows系统下设置Vivado默认版本:让工程文件按需打开
  • Visual Studio Code (VSCode) 的基本设置指南,帮助你优化开发环境
  • 采用分步式无线控制架构实现水池液位自动化管理
  • SpringSecurity高级用法
  • 【电机控制器】STC8H1K芯片——低功耗
  • openAI官方prompt技巧(二)
  • 项目6:基于大数据校园一卡通数据分析和可视化
  • 每日一题——缺失的第一个正整数
  • Open-Interface:基于大语言模型 LLM 的自动化界面操作系统
  • 前端开发中,如何判断一个元素是否在可视区域中?
  • ZND网络分析仪,一款高性能的测试与测量设备
  • 10:超级玛丽游戏
  • 利用NestJS构建高效的RESTful API接口
  • 什么是推理大模型?DeepSeek R1推理大模型与DeepSeek V3模型的区别是什么?什么时候该使用推理大模型?
  • 【Linux】:Socket编程应用层 TCP
  • [学习笔记] Kotlin Compose-Multiplatform
  • 在离线的服务器上部署Python的安装库
  • 计算机网络结课设计:通过思科Cisco进行中小型校园网搭建
  • kbengine服务器和 数据库 系统路径配置
  • C语言基本概念————讨论sqrt()和pow()函数与整数的关系
  • 高效利用Java爬虫开发批量获取商品信息:电商数据挖掘的“利器”
  • 【鸿蒙HarmonyOS Next实战开发】多媒体视频播放-GSYVideoPlayer
  • Pyqt的QTabWidget组件
  • 【STM32H743】【RT-Thread Studio】RTC功能(基于BSP工程可一键开启)
  • 嵌入式linux系统中VIM编辑工具用法与GCC参数详解
  • 记录一次报错:spring security 403报错