HTML float right element order

前端 未结 6 1465
难免孤独
难免孤独 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条回答
  •  猫巷女王i
    2020-12-02 12:15

    If both elements set to float the same direction (in this case- right), the first one which appears in our HTML (not CSS!) be the one on the far side close to the edge.

提交回复
热议问题