会员可以在此提问,百战程序员老师有问必答
对大家有帮助的问答会被标记为“推荐”
看完课程过来浏览一下别人提的问题,会帮你学得更全面
截止目前,同学们一共提了 132382个问题
Python 全系列/第十阶段:Flask百战电商后台项目/Flask百战电商后台项目 37113楼
JAVA 全系列/第十一阶段:消息中间件与高并发处理/Nginx 37115楼
Python 全系列/第一阶段:Python入门/控制语句 37116楼
JAVA 全系列/第十八阶段:亿级高并发电商项目_架构/编码(旧)/电商:基于SpringSecurity实现后台登录功能 37118楼

QQ截图20201113103754.png

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>米课</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="icon" href="images/favicon.ico">
    <link rel="stylesheet" href="css/reset.css">
    <link rel="stylesheet" href="css/iconfont.css">
    <style>
        /* 导航开始 */
        .nav {
            width: 100%;
            height: 66px;
            background-color: #88c5e1;
            border-bottom: 5px solid #54abd4;
            position: fixed;
            top: 0;
            left: 0;
            z-index: 999;
        }
        .wrap {
            width: 87%;
            margin: 0 auto;
        }
        .login, .search, .nav-bar {
            height: 66px;
            float: left;
        }
        .text-input {
            width:100%;
            height: 40px;
            border: 1px solid #f5f5f5;
            box-sizing: border-box;
            padding-left: 10px;
            background-color:#f5f5f5;
            outline :none; /* 点击input时 没有边框 */
            border-radius: 2px;
            margin-top: 13px;
            transition: all .2s;
        }
        .text-input:hover {
            background-color: #fff;
            border-color: #54abd4;
        }
        .search button {
            width:40px;
            height: 34px;
            background-color:#f5f5f5;
            color:#54abd4;
            font-weight: 900;
            position: absolute;
            right: 2px;
            top: 16px;
        }
        .nav-bar>ul {
            float: right;
        }
        .nav-bar li {
            float: left;
        }
        .nav_bar a {
            color: #fff;
            padding: 10px;
            display: block;
            margin-left: 8px;
            margin-top: 12.5px;
        }
        .nav-bar-active {
            border-bottom: 2px solid #fff;
        }
        .nav-bar a:hover {
            border-bottom: 2px solid #fff;
        }
        /* phone start */
        @media screen and (max-width: 768px) {
            .login {
                width: 16%;
                background: url("images/Brand-S.png") no-repeat left center; /* 或者只写left */
                background-size: 38px;
            }
            .search {
                width: 68%;
                position: relative;
            }
            .nav-bar {
                display: none;
            }
            .btn {
                float: right;
                width: 43px;
                height: 43px;
                border: 1px solid#fff;
                color:#fff;
                line-height: 43px;
                font-weight: 700;
                font-size: 20px;
                margin-top: 10.5px;
            }
        }
        /* phone end */
        /* ipad start */
        @media screen and (min-width: 768px) and (max-width: 992px) {
            .login {
                width: 18%;
                background: url("images/Brand-M.png") no-repeat left; /* 或者只写left */
                background-size: 86px;
            }
            .search {
                width: 42%;
                position: relative;
            }
            .nav-bar {
                width: 40%;
            }
            .btn {
                display: none;
            }
        }
        /* ipad end */
        /* pc start */
        @media screen and (min-width: 992px) {
            .login {
                width: 25%;
                background: url("images/Brand.png") no-repeat left center; /* 或者只写left */
                background-size: 183px;
            }
            .search {
                width: 40%;
                position: relative;
            }
            .nav-bar {
                width: 35%;
            }
            .btn {
                display: none;
            }
        }
        /* pc end */
        /* 导航结束 */
    
        /* 登录开始 */
        .login {
            width: 100%;
            height: 460px;
            background-image: url("images/homeImg.png");
            background-repeat: no-repeat;
            background-size: 100% 100%;
            margin-top: 71px;
            padding-top: 75px;
            box-sizing: border-box;
        }
        .login-logo, .form {
            float: left;
        }
        .login-logo {
            width: 70%;
        }
        .form {
            width: 30%;
        }

        /* 登录结束 */
    
    
    
    
    </style>
</head>
<body>
    <!-- 导航开始 -->
    <div class="nav">
        <div class="wrap">
            <div class="login"></div>
            <div class="search">
                <form action="">
                    <input class="text-input" type="text" placeholder="查找课程">
                    <button class="iconfont">&#xe64d;</button>
                </form>
            </div>
            <div class="nav-bar">
                <ul>
                    <li><a class="nav-bar-active" href="#">首页</a></li>
                    <li><a href="#">课程</a></li>
                    <li><a href="#">公告</a></li>
                    <li><a href="#">登录</a></li>
                </ul>
            </div>
            <div class="btn">
                <i class="iconfont">&#xe66c;</i>
            </div>
        </div>
    </div>
    <!-- 导航结束 -->

    <!-- 登录开始 -->
    <div class="login">
        <div class="wrap">
            <div class="login-logo">
                <img src="images/MiLogo.png" alt="">
                <br>
                <img src="images/miTitle.png" alt="">
            </div>
            <div class="form"></div>
        </div>
    </div>

    <!-- 登录结束 -->
</body>
</html>

老师 您给我看看 哪错了 怎么结果是这样的

WEB前端全系列/第一阶段:HTML5+CSS3模块/商城官网项目 37119楼
JAVA 全系列/第六阶段:项目管理与SSM框架/Mybatis 37120楼

课程分类

百战程序员微信公众号

百战程序员微信小程序

©2014-2025百战汇智(北京)科技有限公司 All Rights Reserved 北京亦庄经济开发区科创十四街 赛蒂国际工业园
网站维护:百战汇智(北京)科技有限公司
京公网安备 11011402011233号    京ICP备18060230号-3    营业执照    经营许可证:京B2-20212637