$scope.bigimgFun = function () {
var width = $("#showImg").width();
var height = $("#showImg").height();
console.log(width);
console.log(height);
$("#showImg").css({
"width":(width+100).toString()+'px'}
);
};
阿神2017-07-05 10:50:01
Just don’t fix the size of the outer p. . Or you can use a script to modify the width and height of the outer p.
女神的闺蜜爱上我2017-07-05 10:50:01
The problem is that part of the content cannot be seen or the width of the content cannot be enlarged;
The outer p does not have a given width, it depends on the content, or the img is separated from the document flow.