在同一行布局的技巧

例如上面的布局,咱们可使用里面元素浮动,外面的div高度为0的特色来布局,使2个div重叠在一块儿css

    <div class="pretext1-nexttext1">
     <span class="pretext1" >无</span>
     <span class="nexttext1" >站点名称2</span>
    </div>
     <div class="banner_jiantou">
     <span class="pre" style="z-index:100;"><img src="../../dist/img/left-jiantou.png" width="29"  /></span>
     <span class="next" style="z-index:100;"><img src="../../dist/img/right-jiantou.png" width="29" /></span>
    </div>
.banner_jiantou{width:450px;margin:0 auto;margin-top:2px;}
.pre{float:left;}
.next{float:right;}
.pretext1-nexttext1{ width:900px; margin:0 auto;font-size:20px;}
.pretext1{width:30%;float:left;text-align:right;padding-right:30px;}
.nexttext1{width:30%;float:right;text-align:left;padding-left:30px;}
相关文章
相关标签/搜索