lcssc1

html

<div class="site-topbar">

<div class="topbar-left">左</div>

<div class="topbar-right">右</div>

</div>

 

css

.site-topbar{
height: 40px;
}

.site-topbar .topbar-left{
float: left;
}

.site-topbar .topbar-right{
float: right;
}

主要在于在div的css中设置float

效果图如下:

 

分类:

技术点:

相关文章:

  • 2021-11-02
  • 2021-12-28
  • 2021-11-20
  • 2021-04-29
  • 2021-11-30
  • 2021-12-28
  • 2021-12-01
  • 2021-11-21
猜你喜欢
  • 2021-10-09
  • 2021-11-02
  • 2021-12-28
  • 2021-12-10
  • 2021-12-10
  • 2021-08-02
相关资源
相似解决方案