总感觉 哪里不对,帮忙看看,老师,谢谢
来源:2-7 编程练习
慕后端8441795
2020-09-22 07:20:41
<!DOCTYPE html>
<html>
<head>
<title></title>
<style type="text/css">
*{margin: 0;padding: 0;}
.main{width: 860px;margin:0 auto;font-family:serif;font-weight: bold;}
.title{text-align: center;}
.content{overflow: hidden;}
.left,.right{width:400px;float:left;margin: 0 15px ;}
img{width: 400px;}
p{float: left; font-size: 15px;}
</style>
</head>
<body>
<div class="main">
<div class="title">
<h1>ENJOY THE LIFE</h1>
</div>
<div class="content">
<div class="left">
<dl>
<dt><img src="http://climg.mukewang.com/58f829090001a4b504260240.jpg">
</dt>
<dd><p>Life 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.</p>
</dd>
</dl>
</div>
<div class="right">
<dl>
<dt><img src="http://climg.mukewang.com/58f8290f0001558804260240.jpg">
</dt>
<dd><p>Life is like a cup of tea,let people lead a person to endless ,You again good taste,it will always have a different taste,different people will have different teatee more</p>
</dd>
</dl>
</div>
</div>
</div>
</body>
</html>
1回答
同学你好,代码效果没有问题哦,继续加油!
祝学习愉快!
相似问题