在ion_scroll中,必須設定固定的高度後才能實現Y方向的滾動,但是對於不同高度的窗口,需要根據實際情況進行設定其高度
設定該ion_scroll的ng_style屬性,
ng-style="grid_height"
js中設定動態的高度,頁面的高度-header-foot及其他固定的高度
$scope.grid_height={height:''+document.getElementById("html").offsetHeight-340+'px'};
轉載自:http://blog.csdn.net/kkliu201210/article/details/46591355