老师好,请问为什么我的main里边content,没有包含住dl里的图片呢?谢谢啦

老师好,请问为什么我的main里边content,没有包含住dl里的图片呢?谢谢啦


<!DOCTYPE html>

<html>

<head>

<meta charset="utf-8">

<title>css网页布局</title>

<link rel="stylesheet" type="text/css" href="css/index.css">

</head>


<body>

<!-- 头部 --> 

<div class="header">

<div class="logo">

<img src="image/logo.png" alt="logo">

</div>

<div class="nav">

<ul>

<li>首页</li>

<li>手记</li>

<li>图片</li>

<li>视频</li>

</ul>

</div>

</div>



<!-- 主页 -->

<div class="main">


<div class="top">

<img src="image/1.jpeg">

<!-- 图片的遮罩层 -->

<div class="topLayer"></div>

<!-- 遮罩层的文字 -->

<div class="topLayer-top">

<div class="word">MY BEAUTIFUL LIFE</div>

<button>LOOK MORE&gt;</button>

</div>

</div>


<div class="middle">


<div class="m-top">

<div class="commen weibo">

<img src="image/weibo.png">

<div class="comm">MICROBLOG</div>

</div>

<div class="commen weixin">

<img src="image/weixin.png">

<div class="comm">WECHAT</div>

</div>

<div class="commen qq">

<img src="image/qq.png">

<div class="comm">QQ</div>

</div>

</div>


<div class="clear"></div>


<div class="m-middle">

"I want to give good things to record down,<br>after the recall will be very beautiful."

</div>


<div class="clear"></div>

<div class="m-bottom">

<div class="m-com">

<img src="image/03-01.jpg">

<div class="dis1">Cool Image</div>

<div class="dis2">Record The Picture</div>

</div>

<div class="m-com">

<img src="image/03-02.jpg">

<div class="dis1">Cool Image</div>

<div class="dis2">Record The Picture</div>

</div>

<div class="m-com">

<img src="image/03-03.jpg">

<div class="dis1">Cool Image</div>

<div class="dis2">Record The Picture</div>

</div>

</div><div class="clear"></div>

</div>


<div class="clear"></div>


<div class="bottom">

<div class="content">

<div class="title">FROM THE PHOTO ALBUM

</div>


<!-- </div><div class="clear"></div> -->


<div class="pic-content">

<dl>

<dt><img src="image/04-01.jpg"></dt>

<dd class="word">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>

<dl>

<dt><img src="image/04-02.jpg"></dt>

<dd class="word">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 class="clear"></div>  

</div>

<div class="clear"></div>

</div>

</div>


<!-- 底部 -->

<div class="footer">© 2016 imooc.com 京ICP备13046642号</div>

</body>

</html>


正在回答

登陆购买课程后可参与讨论,去登陆

2回答

同学你好,相同的问题在另一个提问中已经回复同学了哦,同学快去看一下吧:https://class.imooc.com/course/qadetail/201896

祝学习愉快~

好帮手慕码 2020-03-11 11:17:15

同学你好,测试同学提供的代码,从控制台中、代码结构来看是正确的:

http://img1.sycdn.imooc.com//climg/5e6857bf095e276302230028.jpg

http://img1.sycdn.imooc.com//climg/5e6857cc09cc204302820173.jpg

http://img1.sycdn.imooc.com//climg/5e6857d80919c75608730408.jpg

没有出现“main里边content,没有包含住dl里的图片”的问题,同学可以详细描述一下问题(可以截图演示),并把css代码粘贴至问答区进行测试,以便准确的帮助同学分析问题。

祝学习愉快~

  • 提问者 是鹿呦呦呀 #1
    谢谢老师,我第一次提问还不太会弄,忘记粘贴图片了 ̄□ ̄||,我去改一下~
    2020-03-11 12:03:10
问题已解决,确定采纳
还有疑问,暂不采纳

恭喜解决一个难题,获得1积分~

来为老师/同学的回答评分吧

0 星
请稍等 ...
意见反馈 帮助中心 APP下载
官方微信

在线咨询

领取优惠

免费试听

领取大纲

扫描二维码,添加
你的专属老师