请老师帮忙看下,谢谢

请老师帮忙看下,谢谢

<!DOCTYPE html>

<html>

<head>

    <meta charset="UTF-8">

<title>IMOOC</title>


    <style type="text/css">

        *{

            padding: 0;

            margin: 0;

        }

        section.main{

           width:1200px;

           height:473px; 

           margin: 34px auto 0;

        }

        section.main h1{

            font-size:30px;

            font-weight:400;

            margin-bottom:23px;

        }

        section.main h1 samp{

            font-size:30px;

            font-weight:400;

            color:#7c7c7c;

        }

        section.main aside{

            float:left;

            width:450px;

        }

        section.main aside dl{

            position:relative;

            height:74px;

            display:block;

            margin-bottom:23px;

        }

        section.main aside dl dt{

            position:absolute;

            top:-1px;

            left:92px;

            font-size:16px;

            font-weight:700;

            line-height:16px;

            text-decoration:underline;


        }

        section.main aside dl dd:first-of-type{

            position:absolute;

            left:0;

            font-size:35px;

            background-image:url(http://img1.sycdn.imooc.com/climg//582e61290001787900500051.png);

            background-size: 50px;

            background-position: center;

            padding:3 15px;

            color:#fff;


        }

        section.main aside dl dd:last-of-type{

            position:absolute;

            top:20px;

            left:90px;

            font-size:14px;

        }

        section.main article{

            float:right;

            width:720px;

            overflow:hidden;

        }

        section.main article p,

        section.main article img{

            margin-bottom:20px;

            font-size:14px;

        }

        section.main article img{

           width:100%;

           height:210px;

        }

    </style>


</head>


<body>

    <!--  在此完成网页的HTML代码-->

    <section class="main">

        <aside>

            <h1>Recent <samp>Course</samp></h1>

            <dl>

                <dt>Hyper Text Markup Language</dt>

                <dd>1</dd>

                <dd>HTML is the standard markup language used to create web pages and its elements form the building blocks of all websites.</dd>

            </dl> 

            <dl>

                <dt>Cascading Style Sheets</dt>

                <dd>2</dd>

                <dd>Cascading Style Sheets (CSS) is a simple mechanism for adding style (e.g., fonts, colors, spacing) to Web documents.</dd>

            </dl> 

            <dl>

                <dt>JavaScript</dt>

                <dd>3</dd>

                <dd>JavaScript is a high-level, dynamic, untyped, and interpreted programming language.</dd>

            </dl> 

            <dl>

                <dt>AngularJS</dt>

                <dd>4</dd>

                <dd>AngularJS is an open-source web application framework mainly maintained by Google and by a community of individuals and...</dd>

            </dl> 

        </aside>

        <article>

            <h1>Welcome to <samp>Massive Open Online Course!</samp></h1>

            <p>We provide the latest knowledge to help you cope with the changing world!</p>

            <img src="http://img1.sycdn.imooc.com/climg//582e61180001ede703300130.jpg">

            <p>We hope that all the students who love the Internet can be more convenient access to learning resources, using the Internet thinking to change our learning.</p>

            <p>Focus on IT skills education MOOC, consistent with the development trend of the Internet down to earth's MOOC. We are free, we only teach useful, we concentrate on education.

            </p>

        </article>

    </section>

</body>

</html>


正在回答

登陆购买课程后可参与讨论,去登陆

1回答

同学你好, 代码中如下所示位置少写了单位。 建议修改:

http://img1.sycdn.imooc.com//climg/5ce3a7f700017b0409580344.jpg

另, 根据效果图, 左侧的标题与下面的内容不是对齐显示的, 建议修改: 可以给左侧标题添加负的margin-left值, 让标题往左移动一点距离

http://img1.sycdn.imooc.com//climg/5ce3a869000142d503920098.jpg

效果图:

http://img1.sycdn.imooc.com//climg/5ce3a8780001a4e205750202.jpg

如果帮助到了你, 欢迎采纳!

祝学习愉快~~~


问题已解决,确定采纳
还有疑问,暂不采纳

恭喜解决一个难题,获得1积分~

来为老师/同学的回答评分吧

0 星
请稍等 ...
微信客服

购课补贴
联系客服咨询优惠详情

帮助反馈 APP下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号

在线咨询

领取优惠

免费试听

领取大纲

扫描二维码,添加
你的专属老师