2
我可以知道,如果我可以將controlgroup data-role的data-type ='horizontal'更改爲data-type =「vertical」,而我的ipad方向改變了? ()「)或$(」div「)。css()?是否是由於$(」div「)。attr()或$(」div「)。更改jquery移動數據類型(在水平和垂直之間)
我可以知道,如果我可以將controlgroup data-role的data-type ='horizontal'更改爲data-type =「vertical」,而我的ipad方向改變了? ()「)或$(」div「)。css()?是否是由於$(」div「)。attr()或$(」div「)。更改jquery移動數據類型(在水平和垂直之間)
如果你想改變方向改變使用的東西:
$(window).bind("orientationchange", function(){
if(window.orientation != 0){
// Do something when sideways
}else{
// Do something when normal
}
});
祝你好運!