我正在尝试调整带有背景图像(左)和可变高度描述(右)的 div 的大小,但无法正常工作。这是 the fiddle .我在有/没有 zepto/jQuery/document.getElementById 的情况下尝试了几件事……没有任何效果。
.directive('resize', function () {
return {
restrict: 'A',
scope: {},
link: function(scope, elem, attrs) {
elem.height(400);
}
};
})
最佳答案
关于css - 在 AngularJS 指令中调整 div 的大小?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18127813/