老师请检查 请教照片怎么加宽 红色圈怎么加数字 谢谢

老师请检查 请教照片怎么加宽 红色圈怎么加数字 谢谢

<!DOCTYPE html>

<html>

<head>

    <meta charset="UTF-8">

<title>IMOOC</title>

<link rel="stylesheet" type="text/css" href="main.css">

</head>

<body>

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

<section class="main">

    <aside>

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

<dl>

<dt>Hyper Text Markup Language</dt>

<dd><img src="http://img1.sycdn.imooc.com/climg//582e61290001787900500051.png"></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><img src="http://img1.sycdn.imooc.com/climg//582e61290001787900500051.png"></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><img src="http://img1.sycdn.imooc.com/climg//582e61290001787900500051.png"></dd>

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

</dl>

<dl>

<dt>AngularJS</dt>

<dd><img src="http://img1.sycdn.imooc.com/climg//582e61290001787900500051.png"></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>




css

main { position: relative; width: 1200px; height: 473px; margin: 34px auto 0; }

.main h1 { font-size: 30px; font-weight: bold; margin-bottom: 23px; color: black;}

.main h1 > samp { font-size: 30px; color: #7c7c7c; }

.main > aside { float: left; width: 450px; }

.main > aside > dl { position: relative; display: block; height: 74px; margin-bottom: 17px; }

.main > aside > dl > dt { position: absolute; top: -1px; left: 92px; font-size: 16px; font-weight: bold; line-height: 16px; text-decoration: underline; }

.main > aside > dl > dd:first-of-type { position: absolute; left: 0; }

.main > aside > dl > dd:last-of-type { position: absolute; top: 20px; left: 90px; }

.main > article { float: right; width: 725px; overflow: hidden; }

.main > article > p,

.main > article > img { margin-bottom: 20px;}


正在回答

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

1回答

同学你好,问题解答如下:

1.类名没有加点,所以样式无法生效

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

如下修改:

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

2. 图片的尺寸如下设置

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

3. 可以添加一个span标签,里面写上数字,然后把span标签定位到红色圈位置。自己先根据思路做一做,锻炼自己的思维与动手能力。如果写到哪里不会了,可以粘贴代码,老师为你指导哦。

如果我的回答帮助到了你,欢迎采纳,祝学习愉快~

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

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

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

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

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

帮助反馈 APP下载

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

公众号

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

在线咨询

领取优惠

免费试听

领取大纲

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