$scope.bigimgFun = function () { var width = $("#showImg").width(); var height = $("#showImg").height(); console.log(width); console.log(height); $("#showImg").css({ "width":(width+100).toString()+'px'} );};
用jquery控制圖片的寬度進(jìn)行放大效果,當(dāng)img的寬度等于外層div的寬度時(shí),img的寬度就不能再
德瑪西亞99
2018-11-22 13:23:05