0
我在這裏有一個問題。我想在MOBILE上更改網站欄目順序。我嘗試使用JavaScript,但似乎不工作是我的代碼錯了嗎?使用Wordpress在移動視圖(wordpress)中更改列順序。有可能的?
這裏Im爲當前的桌面視圖:[A] [B] [C]
當前的移動的觀點是這樣的。
並[a]
並[b]
並[c]
我想我的列出現這樣
並[b]
並[a]
[c]
這裏是我的代碼
<script>
var $iW = $(window).innerWidth();
if ($iW < 480){
$('.b').insertBefore('.a');
}else{
$('.b').insertAfter('.a');
}
</script>