会员可以在此提问,百战未来老师有问必答
对大家有帮助的问答会被标记为“推荐”
看完课程过来浏览一下别人提的问题,会帮你学得更全面
截止目前,同学们一共提了 135131个问题
WEB前端全系列/第一阶段:HTML5+CSS3模块/商城官网项目 166楼
WEB前端全系列/第一阶段:HTML5+CSS3模块/HTML5基础元素 168楼
WEB前端全系列/第一阶段:HTML5+CSS3模块/表单 169楼
WEB前端全系列/第一阶段:HTML5+CSS3模块/前端入门与基础知识 172楼

image.png

WEB前端全系列/第一阶段:HTML5+CSS3模块/前端入门与基础知识 173楼

 <div class="conetnt-title">推荐餐厅</div>
    <div class="conetnt">
        <div class="items">
            <div class="items-top">
                <img src="img/xl-logo2x.png" alt="">
                <p>商家标题一</p>
                <p>人均:¥20.00 |10人预订</p>
                <p>
                    <i class="iconfont">&#xe636;</i>
                    <i class="iconfont">&#xe636;</i>
                    <i class="iconfont">&#xe636;</i>
                    <i class="iconfont">&#xe636;</i>
                    <i class="iconfont">&#xe636;</i>
                </p>
            </div>
        </div>
            <div class="items-bottom">南屏街金马坊</div>
        </div>
    </div>
.conetnt-title{
    width: 100%;
    height: 25px;
    padding-left: 10px;
    box-sizing: border-box;
    color: #017e5c;
    text-align: left;
    line-height: 25px;
    background-color: #eee;
}
.conetnt{
    padding: 10px;
    box-sizing: border-box;
}
.items{
    width: 100%;
    height: 110px;
}
.items-top{
    width: 100%;
    height: 80px;
    background-color:red;
    display: flex;
}
.items-bottom{
    width: 100%;
    height: 30px;
    background-color: #eee;
    text-align: left;
    line-height: 30px;
    color: #a6a6a6;
}
.items-top>img{
    width: 75px;
    height: 75px;
    margin: 5px 15px 5px 5px;
}

老师,这个字体出来为啥是水平排列的?

WEB前端全系列/第一阶段:HTML5+CSS3模块/响应式项目 174楼

你好老师,为啥我用新标签这个完全显示不了?没看出问题在哪儿
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .header{
            width: 1400px;
            background-color: pink;
        }
        div{
            margin-top: 10px;
            height: 600px;
        }
        .nav{
            height: 80px;
            margin-top: 10px;
            background-color: pink;
        }
        .section{
            width: 900px;
            margin-top: 10px;
            background-color: pink;
            height: 600px;
            float: left;
        }
        aside{
            width: 480px;
            margin-top: 10px;
            background: pink;
            height: 600px;
            float: right;
        }
        .footer{
            height: 80px;
            margin-top: 10px;
            background-color: pink;
        }
    </style>
</head>
<body>
    <header>头部</header>
    <nav>导航</nav>
    <div>
        <section>主要内容</section>
        <aside>侧边栏</aside>
    </div>
    <footer>脚部</footer>
</body>
</html>


WEB前端全系列/第一阶段:HTML5+CSS3模块/HTML5新增元素 175楼
WEB前端全系列/第一阶段:HTML5+CSS3模块/前端入门与基础知识 176楼
WEB前端全系列/第一阶段:HTML5+CSS3模块/CSS应用技巧 178楼
WEB前端全系列/第一阶段:HTML5+CSS3模块/前端入门与基础知识 179楼
WEB前端全系列/第一阶段:HTML5+CSS3模块/HTML5新增元素 180楼

课程分类

百战未来微信公众号

百战未来微信小程序

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