请老师过目,不足请指正
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>IMOOC</title>
<link rel="stylesheet" type="text/css" href="main.css">
<style>
section.main {
width: 1200px;
margin: 20px auto 0;
}
.main > aside {
width: 450px;
float: left;
}
.main > article {
width: 730px;
float: right;
}
.main h1 {
font-size: 30px;
font-weight: lighter;
margin-bottom: 30px;
}
.main h1 > samp {
color: #7c7c7c;
font-size: 30px;
}
.main > aside > dl {
position: relative;
display: block;
margin-bottom: 17px;
height: 74px;
}
.main > aside > dl > dt {
position: absolute;
top: -1px;
left: 95px;
font-size: 16px;
font-weight: bold;
line-height: 16px;
text-decoration: underline;
}
.main > aside > dl > dd:first-of-type {
position: absolute;
left: 0px;
}
.main > aside > dl > dd:nth-of-type(2) {
position: absolute;
left: 18px;
top: 8px;
color: white;
font-size: 30px;
}
.main > aside > dl > dd:last-of-type {
position: absolute;
left: 95px;
top: 20px;
margin: 0;
}
.main > article > p,
.main > article > image {
margin-bottom: 30px;
}
</style>
</head>
<body>
<section class="main">
<aside>
<h1>Recent <samp>Course</samp></h1>
<dl>
<dt>HTML</dt>
<dd><img src="http://img1.sycdn.imooc.com/climg//582e61290001787900500051.png"></dd>
<dd>1</dd>
<dd>This is HTML description</dd>
</dl>
<dl>
<dt>CSS</dt>
<dd><img src="http://img1.sycdn.imooc.com/climg//582e61290001787900500051.png"></dd>
<dd>2</dd>
<dd>This is CSS description</dd>
</dl>
<dl>
<dt>JS</dt>
<dd><img src="http://img1.sycdn.imooc.com/climg//582e61290001787900500051.png"></dd>
<dd>3</dd>
<dd>This is JS description</dd>
</dl>
<dl>
<dt>Angular JS</dt>
<dd><img src="http://img1.sycdn.imooc.com/climg//582e61290001787900500051.png"></dd>
<dd>4</dd>
<dd>This is Angular JS description</dd>
</dl>
</aside>
<article>
<h1>Welcome to <samp>Massive Open Online Course!</samp></h1>
<p>This is Paragraph 1</p>
<img src="http://img1.sycdn.imooc.com/climg//582e61180001ede703300130.jpg">
<p>This is the third Paragraph</p>
<p>The last paragraph is full of useless words and insignificant words just used to fill the line to strech this p to multiple lins which can obtain a better display</p>
</article>
</section>
</body>
</html>0
收起
正在回答 回答被采纳积分+1
2回答
HTML5与CSS3实现动态网页 2018
- 参与学习 1887 人
- 提交作业 4643 份
- 解答问题 5760 个
有HTML和CSS基础,却不知道如何进阶?本路径带你通过系统学习,完成从“会做网页”到“做出好的动态网页”的蜕变,迈出成为前端工程师的第一步。
了解课程




恭喜解决一个难题,获得1积分~
来为老师/同学的回答评分吧
0 星