100字范文,内容丰富有趣,生活中的好帮手!
100字范文 > angular jq动态获取当前页面高度

angular jq动态获取当前页面高度

时间:2019-01-09 06:43:25

相关推荐

angular jq动态获取当前页面高度

angApp.controller('LeaderCtrl', function ($rootScope, $scope, $http, $window, $state, $modal) {//获取页面高度var h = document.documentElement.offsetHeight || document.body.offsetHeight;$(".AllContent").css('height', h + 'px'); //将页面高度赋给AllContent})

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。