angApp.controller('LeaderCtrl', function ($rootScope, $scope, $http, $window, $state, $modal) {
//获取页面高度
var h = document.documentElement.offsetHeight || document.body.offsetHeight;
$(".AllContent").css('height', h + 'px'); //将页面高度赋给AllContent
})
angular jq动态获取当前页面高度
最新推荐文章于 2021-07-30 16:08:08 发布