请老师帮忙检查

来源:2-17 自由编程

慕数据4158169

2020-11-26 16:20:28

# 具体遇到的问题

# 报错信息的截图

# 相关课程内容截图

# 尝试过的解决思路和结果

# 粘贴全部相关代码,切记添加代码注释(请勿截图)

*{

    padding0;

    margin0;

}

hr{

    bordernone;

}

.header{

    width100%;

    height80px;

    background-color#07cbc9;

}

.header .header2{

    width1200px;

    height80px;

    margin0 auto;

}

.header .header2 .logo{

    floatleft;

    height48px;

    margin16px 0;

}

.header .header2 .nav{

    floatright;

}

.header .header2 .nav ul{

    list-stylenone;

}

.header .header2 .nav ul li{

    floatleft;

    margin-right20px;

    height50px;

}

.header .header2 .nav ul li a{

    displayblock;

    text-decorationnone;

    colorwhite;

    font-size16px;

    line-height80px;

}

.header .header2 .nav ul li a:hover{

    background-colorrgb(23821087);

}

.banner{

    positionrelative;

    width100%;

}

.banner .banner-img{

    width100%;

    height600px;

}

.banner .center{

    positionabsolute;

    width100%;

    height600px;

    top0;

    backgroundrgba(0000.5);

}

.banner .center .form1{

    positionabsolute;


    width508px;

    left50%;

    margin-left-254px;

    margin-top90px;

    text-aligncenter;

}

.banner .center .form1 input{

    backgroundnone;

    width504px;

    height40px;

    border1px solid #808080;

    margin-top20px;

.banner .center .form1 input:last-child{

    width200px;

    color:#808080 ;

}

.banner .center .form1 textarea{

    width504px;

    height110px;

    backgroundnone;

    margin-top20px;

}

.about{

    width100%;

    text-aligncenter;

    margin-top30px;

}

.about h3{

    font-size32px;

}

.about hr{

    width60px;

    height3px;

    background#07cbc9;

    margin10px auto

}

.about p{

    colorgray;

    font-size14px;

}

.about2{

    width100%;

    height464px;

    margin-top30px;

}

.about2 .content{

    positionrelative;

    width1201px;

    height464px;

    margin0 auto;

}

.about2 .content hr{

    width60px;

    height3px;

    background#07cbc9;

    margin10px auto

}

.about2 .content .hh{

    positionabsolute;

    margin-top10px;

}

.about2 .content .hh h3{

    font-size32px;

}

.about2 .content .wordabout{

    positionabsolute;

    width300px;

    padding20px;

    font-size18px;

    border1px solid gray;

    backgroundrgba(255,255,255,0.5);

    z-index6;

    top50%;

    margin-top-120px;

}

.about2 .content .wordabout .expl{

    background-color#000;

    width138px;

    height38px;

    border1px solid #000;

    font-size18PX;

    colorhoneydew;

    text-aligncenter;

    line-height40px;

    margin-top20px;

}


.about2 .content img{

    positionabsolute;

    width650px;

    height435px;

    left50%;

    margin-left-325px;

}

.about2 .content .student{

    width260px;

    positionabsolute;

    right0;

    top0;

    text-aligncenter;

    padding40px 0;

    border1px solid #07cbc9;

}

.about2 .content .student h3{

    font-size28px;

    font-weightbold;


}

.about2 .content .faculty{

    padding40px 0;

    line-height40px;

    width260px;

    positionabsolute;

    right0;

    top190px;

    text-aligncenter;

    border1px solid #07cbc9;

}

.about2 .content .faculty h3{

    font-size28px;

    font-weightbold;

}

.textwrap{

    width100%;

    overflowhidden;

    positionrelative;

}

.textwrap .wrap{

    floatleft;

    width25%;

    height380px;

}

.textwrap .wrap img{

    width100%;

    height100%;

}

.textwrap .text{

    box-sizingborder-box;

    floatleft;

    width25%;

    height380px;

    padding20px;

    background-color#07cbc9;

    positionrelative;

}

.textwrap .texttop::before{

    content"";

    width0;

    height0;

    border30px solid transparent;

    border-right-color#07cbc9;

    positionabsolute;

    left-60px;

    top170px;

}

.textwrap .textbottom::before{

    content"";

    width0;

    height0;

    border30px solid transparent;

    border-left-color#07cbc9;

    positionabsolute;

    right-60px;

    top170px;

}

.textwrap .text h3{

    margin-bottom30px;

    font-size24px;

    colorwhite;

}

.textwrap .text .text1{

    font-size16px;

    colorwhite;

    margin-bottom20px;

}

.textwrap .text .text2{

    font-size14px;

    colorgray;

}

.textwrap .text button{

    displayblock;

    margin30px auto;

    background-color#000;

    width138px;

    height38px;

    border1px solid #000;

    font-size18PX;

    colorhoneydew;

    text-aligncenter;

    line-height40px;

}

.gallery .image-text{

    width1160px;

    height613px;

    padding20px;

    margin0 auto;

}

.gallery .image-text dl{

    floatleft;

    margin-right40px;

}

.gallery .image-text dl.sp2{

    margin-bottom30px;

}

.gallery .image-text dl.sp{

    margin-right0;

}

.gallery .image-text dl dt img{

    width360px;

    height240px;

    display:block;

}

.gallery .image-text dl dd{

    colorwhite;

    background-colorrgb(000);

    width360px;

    height50px;

}

.gallery .image-text dl dd span{

    margin-left20px;

    line-height50px;

}


.footer{

    text-aligncenter;

    width100%;

    background-color#07cbc9;

    height80px;

    line-height80px;

}



<!DOCTYPE html>

<html lang="en">


<head>

    <meta charset="UTF-8">

    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    <title>Document</title>

    <link rel="stylesheet" href="css/css.css">

</head>


<body>

    <!--Header页面头部  -->

    <div class="header">

        <div class="header2">

            <!-- logo -->

            <div class="logo">

                <img src="images/logo.png" alt="">

            </div>

            <!-- nav -->

            <div class="nav">

                <ul>

                    <li><a href="#">HOME</a></li>

                    <li><a href="#">ABOUT</a></li>

                    <li><a href="#">GALERY</a></li>

                    <li><a href="#">FACULTY</a></li>

                    <li><a href="#">EVENTS</a></li>

                    <li><a href="#">CONTACT</a></li>

                </ul>

            </div>

        </div>

    </div>


    <!--Banner页面横幅  -->

    <div class="banner">

        <!-- images -->

        <div>

            <img class="banner-img" src="images/banner3.jpg" alt="">

        </div>


        <!-- 遮罩层 -->

        <div class="center">

            <!-- 表单 -->

            <form class="form1" action="">

                <input type="text" placeholder="your Name">

                <input type="password" placeholder="your Phone">

                <input type="email" placeholder="your Email">

                <textarea name="" id="" cols="30" rows="10" placeholder="Wirte Your Connent Here"></textarea>

                <input type="submit" value="SEND MESSAGE">

            </form>

        </div>

    </div>


    

    <!--About 简介 -->

        <div class="about">

            <!-- 标题和简短描述 -->

            <h3>ABOUT</h3>

            <!-- 分割线 -->

            <hr>

            <p>

                Lorem Ipsum is simply dummy text of the printing and typesetting<br> industry. Lorem Ipsum has been the

                industry's standard dummy text<br> ever since the 1500s.

            </p>

        </div>


    <div class="about2">

        <div class="content">

            <!-- 详细描述 -->

            <div class="hh">

                <h3>A WORD </h3>

                <h3>ABOUT US</h3>

            </div>

            <div class="wordabout">

                <p>

                    Praesent dignissim viverra est, sed bibendum ligula congue non. Sed ac nisl et felis gravida commodo?Suspendisse eget ullamcorper ipsum. Suspendisse diam amet.

                </p>

                

                <BUtton class="expl">EXPLORE</BUtton>

            </div>


            <img src="images/bb3.jpg" alt="">

            

            <div class="student">

                <h3>70000</h3>

                <!-- 分割线 -->

                <hr>

                <p>Students</p> 

            </div>

            

            <div class="faculty">

                <h3>600</h3>

                <!-- 分割线 -->

                <hr>

                <p>Faculty</p>

            </div>

        </div>

    </div>


    

    <!--图文混排区域  -->

    <div class="textwrap">

        <div class="wrap1 wrap ">

            <img src="images/b1.jpg" alt="">

        </div>


        <div class="texttop text">

            <h3>Library</h3>

            <p class="text1">

                Lorem Ipsum is simply dummy text of the printing and typesetting industry

            </p>


            <p class="text2">

                Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer

                took a galley of type and scrambled it to make a type specimen book.

            </p>

            

            <button>EXPLORE</button>

        </div>


        <div class="wrap2 wrap">

            <img src="images/b2.jpg" alt="">

        </div>


        <div class="texttop text">

            <h3>Library</h3>

            <p class="text1">

                Lorem Ipsum is simply dummy text of the printing and typesetting industry

            </p>


            <p class="text2">

                Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer

                took a galley of type and scrambled it to make a type specimen book.

            </p>

            <button>EXPLORE</button>

        </div>



        <div class="textbottom text">

            <h3>Library</h3>

            <p class="text1">

                Lorem Ipsum is simply dummy text of the printing and typesetting industry

            </p>


            <p class="text2">

                Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer

                took a galley of type and scrambled it to make a type specimen book.

            </p>

            <button>EXPLORE</button>

        </div>

            

        <div class="wrap3 wrap">

            <img src="images/b3.jpg" alt="">

        </div>


        <div class="textbottom text">

            <h3>Library</h3>

            <p class="text1">

                Lorem Ipsum is simply dummy text of the printing and typesetting industry

            </p>


            <p class="text2">

                Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer

                took a galley of type and scrambled it to make a type specimen book.

            </p>

            <button>EXPLORE</button>

        </div>


        <div class="wrap4 wrap">

            <img src="images/b4.jpg" alt="">

        </div>

    </div>


    <!--Gallery画廊区域  -->

    <div class="gallery">

        <!-- 标题和简短描述 -->

        <div class="about">

            <h3>GALERY</h3>

            <!-- 分割线 -->

            <hr>

            <p>

                Lorem Ipsum is simply dummy text of the printing and typesetting<br> industry. Lorem Ipsum has been the

                industry's standard dummy<br> text ever since the 1500s.

            </p>

        </div>

        <!-- 详细描述 -->

        <div class="image-text">

            <dl class="sp2">

                <dt><img src="images/03-01.jpg" alt=""></dt>

                <dd><span>Science Lab</span></dd>

            </dl>

            <dl class="sp2">

                <dt><img src="images/03-02.jpg" alt=""></dt>

                <dd><span>Indoor Stadium</span></dd>

            </dl>

            <dl class="sp sp2">

                <dt><img src="images/03-03.jpg" alt=""></dt>

                <dd><span>Transportation</span></dd>

            </dl>

            <dl>

                <dt><img src="images/03-04.jpg" alt=""></dt>

                <dd><span>Kids Room</span></dd>

            </dl>

            <dl>

                <dt><img src="images/03-05.jpg" alt=""></dt>

                <dd><span>Meditation Classes</span></dd>

            </dl>  

            <dl class="sp">

                <dt><img src="images/03-06.jpg" alt=""></dt>

                <dd><span>Kids Play Ground</span></dd>

            </dl>  

        </div>

    </div>


    <!--Footer页脚  -->

    <div class="footer">

        ©2016 imooc.com 京icp备13046642

    </div>

<div class="n5"></div>

</body>


</html>


写回答

1回答

好帮手慕言

2020-11-26

同学你好,顶部logo位置比较靠下,效果不美观,如下:

http://img.mukewang.com/climg/5fbf68bc09cdd4d501800101.jpg

建议:调整logo的样式,例如:

http://img.mukewang.com/climg/5fbf691d0970a71504190290.jpg

其他地方实现的不错,继续加油,祝学习愉快~

0

0 学习 · 15276 问题

查看课程