設定div 高度為最大可用高度
.directive('grid', function () {
return {
link: function (scope, elem, attrs) {
$(elem).height($(window).height() - $(elem).offset().top);
}
};
})
return {
link: function (scope, elem, attrs) {
$(elem).height($(window).height() - $(elem).offset().top);
}
};
})
留言