Switching order of HTML elements when layout changes in Responsive Web Design

后端 未结 6 1852
借酒劲吻你
借酒劲吻你 2021-02-04 11:19

I am building a responsive website, and for good user experience, I need some layout changes from mobile to desktop. Specifically, I need to switch the order of some HTML elemen

6条回答
  •  我在风中等你
    2021-02-04 11:52

    Just use jQuery to change the DOM around as required

    if (mobile == true) {
    
        $('div.three').insertBefore($('div.two'));
    }
    

提交回复
热议问题