老师这题这么写符合要求吗?
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>CSS布局</title>
<style type="text/css">
/*此处写代码*/
*{margin:0;padding:0;}
.content{
width:1000px;
margin:0 auto;
margin-top:50px;
}
.title{font-size:30px;
font-family:"微软雅黑";
text-align:center;
margin-bottom:10px;
}
.left{
width:440px;
float:left;
font-family:"微软雅黑";
}
.right{
width:440px;
float:left;
margin-left:50px;
font-family:"微软雅黑";
}
</style>
</head>
<body>
<!-- 此处写代码 -->
<div class="content">
<div class="title">ENJOY THE LIFE</div>
<div class="left">
<dl>
<dt><img src="http://img1.sycdn.imooc.com/climg//58f829090001a4b504260240.jpg"/></dt>
<dd>Life is like a book, just read more and more refined, more write more carefully. When read, mind open, all things have been indifferent to heart. Life is the precipitation.</dd>
</dl>
</div>
<div class="right">
<dl>
<dt><img src="http://img1.sycdn.imooc.com/climg//58f8290f0001558804260240.jpg"/></dt>
<dd>Life is like a cup of tea, let people lead a person to endless aftertastes. You again good taste, it will always have a different taste, different people will have different taste more.</dd>
</dl>
</div>
</div>
</body>
</html>
正在回答
同学你好,这样写符合要求, 可以实现效果。 继续努力哦
欢迎采纳, 祝学习愉快~~~
恭喜解决一个难题,获得1积分~
来为老师/同学的回答评分吧
0 星