老师这题这么写符合要求吗?
来源:2-7 编程练习
philLi
2019-04-19 14:52:26
<!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://climg.mukewang.com/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://climg.mukewang.com/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回答
同学你好,这样写符合要求, 可以实现效果。 继续努力哦
欢迎采纳, 祝学习愉快~~~
相似问题