老师这个试半天就是不浮动

老师这个试半天就是不浮动

<div class="mid">

<div class="m-1">

<div class="m-1image">

<img src="images/b1.jpg">

</div>

<div class="m-font">

<h2 class="m-1fonth2">Confernce&nbsp;Hall</h2>

<h3 class="m-1fonth3">Lorem Ipsum is simply dummy text of the<br/>

  prnting and typesetting industry

</h3>

<p class="m-1fontp">Lorem Ipsum has been the industry's  standard  dummy<br/> 

text  ever  since  the  1500s,when anunknow printer <br/>

took a galley of type and scrambled it to make a type<br/>

specimen book

</p>

<h4 class="m-font4">EXEPLORE</h4>

</div>

</div>

<div class="m-2">

<div class="m-font">

<h2 class="m-1fonth2">Confernce&nbsp;Hall</h2>

<h3 class="m-1fonth3">Lorem Ipsum is simply dummy text of the<br/>

  prnting and typesetting industry

</h3>

<p class="m-1fontp">Lorem Ipsum has been the industry's  standard  dummy<br/> 

text  ever  since  the  1500s,when anunknow printer <br/>

took a galley of type and scrambled it to make a type<br/>

specimen book

</p>

<h4 class="m-font4">EXEPLORE</h4>

</div>

<div class="m-1image">

<img src="images/b2.jpg">

</div>

</div>

<div class="m-3">

<div class="m-1image">

<img src="images/b3.jpg">

</div>

<div class="m-font">

<h2 class="m-1fonth2">Confernce&nbsp;Hall</h2>

<h3 class="m-1fonth3">Lorem Ipsum is simply dummy text of the<br/>

  prnting and typesetting industry

</h3>

<p class="m-1fontp">Lorem Ipsum has been the industry's  standard  dummy<br/> 

text  ever  since  the  1500s,when anunknow printer <br/>

took a galley of type and scrambled it to make a type<br/>

specimen book

</p>

<h4 class="m-font4">EXEPLORE</h4>

</div>

</div>

<div class="m-4">

<div class="m-font">

<h2 class="m-1fonth2">Confernce&nbsp;Hall</h2>

<h3 class="m-1fonth3">Lorem Ipsum is simply dummy text of the<br/>

  prnting and typesetting industry

</h3>

<p class="m-1fontp">Lorem Ipsum has been the industry's  standard  dummy<br/> 

text  ever  since  the  1500s,when anunknow printer <br/>

took a galley of type and scrambled it to make a type<br/>

specimen book

</p>

<h4 class="m-font4">EXEPLORE</h4>

</div>

<div class="m-1image">

<img src="images/b4.jpg">

</div>

</div>

</div>

上面是HTML内容,

.mian .mid {

width:100%;

overflow: hidden;

margin-bottom: 0;

}

.mian .mid .m-1,.m-2,.m-3,.m-4{

width:25%;

min-height:700px;

}/*四个样式*/

.mian .mid  .m-font{

background: #07cbc9;

}

.mian .mid  .m-font4{

border: 1px black solid;

width: 102px;

height:45px;

background: black;

color:white;

text-align: center;

line-height: 45px;

margin-left:25%;

}

/*中间左侧内容*/

}

.mian .mid .m-1,.m-2,.m-3,.m-4{

float:left;

}/*中间浮动*/

这是css样式,怎么不浮动呢http://img1.sycdn.imooc.com//climg/5cd181a40001919210520571.jpg

正在回答 回答被采纳积分+1

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

1回答
好帮手慕夭夭 2019-05-08 10:11:57

你好同学, 代码上传的不完整,如下是老师这边看到的页面没有任何样式,请同学把完整的代码都粘贴上来,以便老师准确高效的帮助你查看问题。

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

祝学习愉快 ,望采纳。

  • 提问者 慕码人2142389 #1
    这个已经解决了,还差一个问题,
    2019-05-08 10:27:02
  • 好帮手慕夭夭 回复 提问者 慕码人2142389 #2
    同学如果还有疑问,可以重新提问一个新问题,把你的疑问详细描述一下,并把完整代码粘贴到问答区域,以便老师帮助你解答哦
    2019-05-08 15:14:39
问题已解决,确定采纳
还有疑问,暂不采纳

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

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

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

在线咨询

领取优惠

免费试听

领取大纲

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