Home  >  Article  >  Web Front-end  >  一个排版,不知道如何做。_html/css_WEB-ITnose

一个排版,不知道如何做。_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-21 09:27:361145browse


就是不能平行。

 
        

 公司资讯   更多>>   

 
       

       
      

      
 
        

 行业动态   更多>>   

 
       
      
 

.mbar{width:auto; height:auto; clear:both; overflow: hidden; margin:10px 0;}.mbar p{ border:0px solid #ccc; text-align:left; line-height:26px;}.mbar a{ margin:0px 10px 0px 0px;}.mbar a:hover{color:#505050;}.mbar .services{height:150px; width:227px; overflow:hidden;}.mbar .services a{margin:0;}.mbar .tel{background: url("../images/icon_11.jpg") no-repeat 0 center;height:35px; width:auto;border:0px solid #ccc; display:block; text-indent:20px;}.mbar .more {font-size:12px;font-weight:normal;float:right;}.mbar hr{ width:96%; border-top: 1px solid #ccc; height:0px; margin:0px auto 0px auto; color:#0099cc;}/*最新动态*/.mbar .notice{text-align:center; margin:2px 0px 0px 1px;}.mbar .notice li { text-align:left;padding-left:10px;line-height:24px;height:24px;width:220px; overflow:hidden; text-overflow:ellipsis;white-space:nowrap;word-wrap:normal;}.mbar .notice span {float:left;display:block;}.mbar .notice .txt {max-width:158px;overflow:hidden; text-overflow:ellipsis;white-space:nowrap;word-wrap:normal;margin-right:1px;}.mbar .notice .new{background:url("../images/new01.gif") no-repeat;width:30px;height:11px;margin-top:5px;}.mbar .notice .sameBtn{margin-top:20px;}/*最新动态2*/.mbar2 .notice{text-align:center; margin:2px 0px 0px 1px;}.mbar2 .notice li { text-align:left;padding-left:10px;line-height:24px;height:24px;width:220px; overflow:hidden; text-overflow:ellipsis;white-space:nowrap;word-wrap:normal;}.mbar2 .notice span {float:left;display:block;}.mbar2 .notice .txt {max-width:158px;overflow:hidden; text-overflow:ellipsis;white-space:nowrap;word-wrap:normal;margin-right:1px;}.mbar2 .notice .new{background:url("../images/new01.gif") no-repeat;width:30px;height:11px;margin-top:5px;}.mbar2 .notice .sameBtn{margin-top:20px;}.mbar2{width:auto; height:200px;  overflow: hidden; margin:10px 0;}.mbar2 p{ border:0px solid #ccc; text-align:left; line-height:26px;}.mbar2 a{ margin:0px 10px 0px 0px;}.mbar2 a:hover{color:#505050;}.mbar2 .services{height:150px; width:227px; overflow:hidden;}.mbar2 .services a{margin:0;}.mbar2 .tel{background: url("../images/icon_11.jpg") no-repeat 0 center;height:35px; width:auto;border:0px solid #ccc; display:block; text-indent:20px;}.mbar2 .more {font-size:12px;font-weight:normal;float:right;}.mbar2 hr{ width:96%; border-top: 1px solid #ccc; height:0px; margin:0px auto 0px auto; color:#0099cc;}


回复讨论(解决方案)

你要用float:left 那两个DIV都加上float:left;

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn