辛苦老师检查下
来源:2-5 编程练习
Lanny_Chung
2020-01-05 23:27:30
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>main</title>
<style>
*{
margin: 0;
padding: 0;
}
section{
width: 1200px;
height: 480px;
margin: 0 auto;
}
aside{
float: left;
width: 540px;
}
h1{
font-size: 30px;
font-weight: bolder;
padding-top: 20px;
margin-bottom: 20px;
}
samp{
font-size: 30px;
color: #7c7c7c;
}
dl{
height: 80px;
position: relative;
margin-bottom: 20px;
}
dt{
position: absolute;
top: 0;
left: 100px;
font-weight: bold;
text-decoration: underline;
}
dl > dd:first-of-type{
position: absolute;
top: 5px;
left: 25px;
width: 50px;
height: 51px;
text-align: center;
line-height: 51px;
font-size: 30px;
color: #fff;
background: url("http://climg.mukewang.com/582e61290001787900500051.png") no-repeat;
}
dl > dd:last-of-type{
position: absolute;
top: 25px;
left: 100px;
font-size: 14px;
}
article{
width: 660px;
height: 480px;
float: right;
}
article p{
font-size: 14px;
margin-bottom: 20px;
}
article img{
width: 520px;
margin-bottom: 20px;
}
</style>
</head>
<body>
<section>
<aside>
<h1>Recent <samp>Course</samp></h1>
<dl>
<dt>Hyper TextMarkup 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://climg.mukewang.com/582e61180001ede703300130.jpg" alt="">
<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回答
同学你好,代码效果正确,继续加油,祝学习愉快~
相似问题