会员可以在此提问,百战程序员老师有问必答
对大家有帮助的问答会被标记为“推荐”
看完课程过来浏览一下别人提的问题,会帮你学得更全面
截止目前,同学们一共提了 132358个问题
WEB前端全系列/第一阶段:HTML5+CSS3模块/CSS选择器 602楼

微信截图_20220805125610.png

/* 初始化文件*/
body,h1,h2,h3,h4,h5,h6,dd,dt,div,dl,ul,ol,li,form,pre,fieldset,legend,input {
    margin: 0;
    padding: 0;

}
a {
    text-decoration:none ;
}
img {
    border:none;
}
body {
    font-family: Helvetica Neue,Helvetica,Arial,Microsoft ;
   text-align: center;
}
ul,li {
    list-style: none;
}

/* 头部样式 开始 css  */
.header  {
    height:120px ;
    width: 100%;
    overflow: hidden;
    position:relative
}
.header img {
    height: 120px;
   
    position: absolute;
    left:50%;
    transform: translateX(-50%);
}
/* 头部样式 结束 css */

/* 黑色导航栏样式开始 */
.black-nav {
    width:100%;
    height:40px;
    background-color: #333;
    line-height: 40px;
}
.wrap {
    width:1226px;
    margin: 0 auto;
}
.left-nav {
    float: left;
}
.right-nav {
    float:right;

}
/* .clearfix:after {
content:"";
display: block;
clear: left;
} */

.black-nav li {
    float:left;
    font-size: 12px;
    position: relative;
}
.black-nav a {
    color: #b0b0b0;
}
.black-nav span {
    color: #424242;
    margin:0 3.6px ;
}
.download {
    width:124px ;
    height: 0;
    background:#fff;
    box-shadow: 0 1px 5px #aaa;
    overflow: hidden;
    transition: all 0.3s;
     position: absolute;
    right:10px;
    transform: translateX(26px);
}
.download img {
    width:90px;
    margin:18px auto 0;

}
.download p {
    margin-top: -20px;
    font-size: 12px;
}

.left-nav a {
    margin:0 auto;
    text-align: center;
}
.down a{
    margin-right: 10px;
}


.left-nav li:hover>.download {
    height:148px;
}
.stri {
    width: 0;
    height: 0;
    border-bottom: 8px solid rgb(249, 3, 3);
    border-left:8px solid transparent;
    border-right:8px solid transparent ;
    position:absolute;
    top:0;
    left: 50px;
    margin-right: -8px;
    margin-top: -3px;
 }

/* 黑色导航栏样式结束 */

为什么我这个箭头是在导航栏下面的呀。

WEB前端全系列/第一阶段:HTML5+CSS3模块/商城官网项目 603楼

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        .box1{
            width: 100%;
            height: 50px;
            background-color: blue;
        }
        .wrap{
            width: 700px;
            height: 50px;
            margin: 0 auto;
            background-color: cadetblue;
            padding-top: 10px;
        }
        .box2{
            width: 700px;
            height: 100px;
            background-color: cadetblue;
            margin: 10px auto 0px auto;
            padding-top: 20px;
        }
        .box3{
            width: 700px;
            height: 20px;
            background-color: gray;
            margin: 0 auto;
        }
        .box4{
            width: 700px;
            height: 40px;
            background-color: green;
            margin: 0 auto;
            padding-top: 50px;

        }
        .box5{
            width: 700px;
            height: 250px;
            background-color: gray;
            margin: 0 auto;
            margin-top:40px;

        }
        .box6{
            width: 700px;
            height: 20px;
            background-color: dodgerblue;
            margin: 10px auto 0px auto;
        }
        .num1{
            padding-left: 50%;
            padding-right: 50%;
        }
        .num2{
            padding-left: 50%;
            padding-right: 50%;
        }
        .num3{
            padding-left: 50%;
            padding-right: 50%;
        }
    </style>
</head>
<body>
<div class="box1">
    <div class="wrap"><span class="num1">top1</span></div>
</div>

<div class="box2" ><span class="num2">middle1</span></div>
<div class="box3"></div>
<div class="box4" ><span class="num3">middle2</span></div>
<div class="box5"></div>
<div class="box6"></div>
</body>
</html>

blob.png我写出来效果不对哎

WEB前端全系列/第一阶段:HTML5+CSS3模块/初识CSS 604楼

<!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>

        .box {

            width: 100%;

            height: 50px;

            background-color: gray;

        }


        .nav {

            width: 80%;

            height: 50px;

            margin: 0 auto;

            line-height: 50px;

        }


        .nav ul li {

            list-style: none;

            float: left;

            padding: 0 30px;

        }


        .nav ul li a {

            text-decoration: none;

            font-size: 20px;

            color: red;

        }

    </style>

    <style>

        @media screen and(max-width:916px) {

            .liu {

                display: none;

            }

        }


        @media screen and(min-width:916px) {

            .liu {

                display: block;

            }

        }

    </style>

</head>


<body>

    <div class="box">

        <div class="nav">

            <ul>

                <li><a href="#">首页1</a></li>

            </ul>

            <ul>

                <li><a href="#">首页2</a></li>

            </ul>

            <ul>

                <li><a href="#">首页3</a></li>

            </ul>

            <ul>

                <li><a href="#">首页4</a></li>

            </ul>

            <ul>

                <li class="wu"><a href="#">首页5</a></li>

            </ul>

            <ul>

                <li class="liu"><a href="#">首页6</a></li>

            </ul>

        </div>


    </div>

</body>


</html>

能这样隐藏其中一个li标签吗?

WEB前端全系列/第一阶段:HTML5+CSS3模块/CSS3新特性 605楼
WEB前端全系列/第一阶段:HTML5+CSS3模块/初识CSS 606楼
WEB前端全系列/第一阶段:HTML5+CSS3模块/初识CSS 608楼
WEB前端全系列/第一阶段:HTML5+CSS3模块/CSS盒子模型 609楼

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模块/商城官网项目 610楼

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<table border="1" align="center" width="500px" height="200px">
    <tr bgcolor="#ffd700">
        <td>片名</td>
        <td>日期</td>
        <td>时间</td>
        <td>电影院</td>
        <td>票价</td>
    </tr>
    <tr>
        <td rowspan="2">【国】卡拉是条狗</td>
        <td rowspan="3">三月七日</td>
        <td  rowspan="6">7:30</td>
        <td rowspan="2">红楼电影院</td>
        <td>小厅:40</td>
    </tr>
    <tr>
        <td>大厅:50</td>
    </tr>
    <tr>

        <td>【美】谍海计中计</td>
        <td>花市电影院</td>
        <td>30</td>
    </tr>
    <tr>
        <td >【美】正义守望者</td>
        <td>三月八日</td>
        <td rowspan="3">华兴国际电影院</td>
        <td>小厅:35</td>
    </tr>
    <tr>
        <td>【国】周宇的火车</td>
        <td>三月十日</td>
        <td>大厅:45</td>
    </tr>
    <tr>
        <td>【美】冰川时代</td>
        <td>三月十一日</td>
        <td>情侣座:80</td>
    </tr>
</table>
</body>
</html>

老师我交不了截图,截图要下载插件,但是我下载了也没有用,重启浏览器还是没有用

WEB前端全系列/第一阶段:HTML5+CSS3模块/HTML5基础元素 611楼
WEB前端全系列/第一阶段:HTML5+CSS3模块/商城官网项目 612楼
WEB前端全系列/第一阶段:HTML5+CSS3模块/表单 613楼

课程分类

百战程序员微信公众号

百战程序员微信小程序

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