2-7编程练习 老师帮忙看一下 谢谢
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>CSS布局</title>
<style type="text/css">
/*此处写代码*/
*{
padding: 0;
margin: 0;
}
.wrap{
width: 900px;
height:500px;
margin: 0 auto;
}
.wrap dl{
width: 426px;
height: 300px;
float: left;
margin-left: 20px;
}
.wrap h1{
text-align: center;
margin-top: 30px;
margin-bottom: 30px;
}
.wrap dl dd{
font-size: 16px;
font-weight: bolder;
}
</style>
</head>
<body>
<!-- 此处写代码 -->
<div class="wrap">
<h1>ENJOY THE LIFE</h1>
<dl>
<dt>
<img src="http://img1.sycdn.imooc.com/climg//58f829090001a4b504260240.jpg
">
</dt>
<dd>
Lou Gehrig: Farewell to Baseball AddressFans, for the past two weeks you have been reading about the bad break I got. Yet today I consider myself the luckiest m...
</dd>
</dl>
<dl>
<dt>
<img src="http://img1.sycdn.imooc.com/climg//58f8290f0001558804260240.jpg
">
</dt>
<dd>
Lou Gehrig: Farewell to Baseball AddressFans, for the past two weeks you have been reading about the bad break I got. Yet today I consider myself the luckiest m...
</dd>
</dl>
</div>
</body>
</html>
正在回答 回答被采纳积分+1
相似问题
登录后可查看更多问答,登录/注册
- 参与学习 人
- 提交作业 11218 份
- 解答问题 36713 个
从一个不会编程的小白到一个老司机是需要过程的,首先得入门,学习基础知识,然后才能进阶,最后再到精通,本专题是你走进前端世界的不二选择!
了解课程
恭喜解决一个难题,获得1积分~
来为老师/同学的回答评分吧
0 星