Can I use CSS to reverse the display order of two elements?

后端 未结 4 741
花落未央
花落未央 2021-01-15 08:41

This sounds crazy, but bear with me. I\'m writing a page that basically consists of the following:

4条回答
  •  我在风中等你
    2021-01-15 09:12

    The following code will sort your issue and according to caniuse.com is compatible with all browsers except for IE7 and below.

    Full support on CSS table display can be found here

    HTML

    1
    2

    CSS

    #child2 {
        display:table-header-group;   
    }
    #child1 {
        display:table-footer-group;    
    }
    

提交回复
热议问题