基本的には、ウィンドウが小さくなるとHTML構造を再構成して、幅が400ピクセルと言うことができます。ユーザーがwitdhに400ピクセル以下の彼/彼女のブラウザのサイズを変更した後ウィンドウの幅に基づいてHTMLを再構成する
<div id="mainContainer">
<div id="div1"> -- Loads of content here -- </div>
<div id="div2"> -- Even more content here -- </div>
<div id="div3"> -- You can't even imagine how much content here -- </div>
</div>
は今、私いくつかの方法をDIV1の上DIV3を移動する必要があり、その構造は次のようになります。
私は既に持っている<div id="mainContainer">
<div id="div3"> -- You can't even imagine how much content here -- </div>
<div id="div1"> -- Loads of content here -- </div>
<div id="div2"> -- Even more content here -- </div>
</div>
、ウィンドウの幅を測定する関数jqueryを使用します。しかし、私はどのように残りの部分を達成するのですか?私はthis sort of similar questionでちょっと見てきましたが、どうすればいいか分かりましたが、静かではありませんでした。
提案がありますか?
ええ、jquery.comの周りを掘り下げて、これと同じ考えになりました。ありがとう。 – diceler