左侧固定,右侧自适应
float + margin
1 | .aside { |
padding + float + margin
1 | .container { |
Flex
1 | .container { |
display: table;
1 | .container { |
float + BFC(overflow: hidden)
1 | .aside { |
position: absolute
1 | .container { |
右侧固定,左侧自适应
padding-right + margin-right(负)
1 | .container { |
flex
1 | .container { |