会员可以在此提问,百战程序员老师有问必答
对大家有帮助的问答会被标记为“推荐”
看完课程过来浏览一下别人提的问题,会帮你学得更全面
截止目前,同学们一共提了 132495个问题
JAVA 全系列/第十八阶段:亿级高并发电商项目_架构/编码(旧)/电商:基于SpringSecurity实现后台登录功能 28832楼
Python 全系列/第一阶段:Python入门/Python入门(动画版) 28833楼
WEB前端全系列/第九阶段:HTML5新特性模块/(旧)H5新特性 28834楼
WEB前端全系列/第十九阶段:Vue2知识体系(旧)/Vue基础知识 28835楼
WEB前端全系列/第十六阶段:React企业级项目/宜居(商城类)高级React实战项目 28836楼

image.png

1616402836(1).jpg

ego_parent.rar

老师我程序没有报错,但是查不到电子书,命名电子书已将在数据库了,老师有空帮我看一下呗!

又是拿不到数据,空指针!

JAVA 全系列/第十八阶段:亿级高并发电商项目_架构/编码(旧)/电商:基于json数据格式完成商品规格参数模板管理 28837楼
Python 全系列/第八阶段:轻量级Web开发利器-Flask框架/Flask视图基础和URL 28838楼

/* 导航样式开始 */
.nav {
    width: 100%;
    height: 66px;
    background: #88c5e1;
    border-bottom: 5px solid #54abd4;
}

.wrap {
    width: 87%;
    margin: 0 auto;
}

.logo,
.nav-bar,
.search {
    float: left;
    height: 66px;
}


.search .text-input {
    width: 100%;
    height: 40px;
    background-color: #f5f5f5;
    border: 1px solid #f5f5f5;
    box-sizing: border-box;
    border-radius: 2px;
    outline: none;
    margin-top: 13px;
    padding-left: 10px;
    transition: all 0.2s;
}

.search button {
    width: 40px;
    height: 34px;
    background-color: #f5f5f5;
    color: #54abd4;
    font-weight: 900;
    position: absolute;
    top: 16px;
    right: 2px;
}

.text-input:hover {
    background-color: #f5f5f5;
    border-color: #54abd4;
}


.nav-bar>ul {
    float: right;
}

.nav-bar ul li {
    float: left;
}

.nav-bar ul li 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;
}

/* 导航样式结束 */

/* **************  响应式设计  *********** */
/* pc端 */
@media screen and(min-width:992px) {
    .logo {
        width: 25%;
        background: url("../images/Brand.png") no-repeat left;
        background-size: 183px;
    }

    .search {
        width: 40%;
        position: relative;
    }

    .nav-bar {
        width: 35%;
    }

    .btn {
        display: none;
    }
}

/* pad端 */
@media screen and(min-width:768px) and (max-width:992px) {
    .logo {
        width: 18%;
        background: url("../images/Brand-M.png") no-repeat left;
        background-size: 86px;
    }

    .search {
        width: 42%;
        position: relative;
    }

    .nav-bar {
        width: 40%;
    }

    .btn {
        display: none;
    }
}

/* M端 */
@media screen and(max-width:768px) {
    .logo {
        width: 16%;
        background: url("../images/Brand-S.png") no-repeat left;
        background-size: 38px;
    }

    .search {
        width: 68%;
        position: relative;
    }

    .nav-bar {
        display: none;
    }

    .btn {
        width: 43px;
        height: 43px;
        border: 1px solid #fff;
        font-weight: 700;
        line-height: 43px;
        float: right;
        color: #fff;
        margin-top: 10.5px;
    }

    .btn i {
        font-size: 20px;
    }
}

也不知道哪里出问题了,对照着源码对了好几遍了,但是源码复制过来就没问题了

image.png

WEB前端全系列/第一阶段:HTML5+CSS3模块/响应式项目 28840楼
Python 全系列/第八阶段:轻量级Web开发利器-Flask框架/Flask视图基础和URL 28841楼
Python 全系列/第十八阶段:数据分析-数据可视化/matplotlib 28842楼
Python 全系列/第八阶段:轻量级Web开发利器-Flask框架/Flask高级 28844楼
JAVA 全系列/第五阶段:JavaWeb开发/Web实战案例 28845楼

课程分类

百战程序员微信公众号

百战程序员微信小程序

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