注意:如果高度不固定,就需要用定位。
1.左侧浮动,右侧margin-left:左侧宽度;
2.用display:flex;给容器
3.用display:inline-block;但是容器要font-size:0;要不会有间距。