HTML float right element order

前端 未结 6 1452
难免孤独
难免孤独 2020-12-02 12:08

If I have three elements flaoted to right, why order is following (see jsfiddle) element 1 is first element on right side, when element 3 is actually last element.

O

6条回答
  •  一整个雨季
    2020-12-02 12:36

    The first element moves to the right, stops when it hits the edge of the container and allows the next element to move up to its left.

    The second element then does the same, except it stops when it hits the left edge of the first element.

    … and so on.

提交回复
热议问题