@
pagecho lz 用的是 canvas 实现模糊。
var CanvasImage = function(a, b) {
this.element = a,
this.image = b,
this.element.width = this.image.width,
this.element.height = this.image.height,
this.context = this.element.getContext("2d"),
this.context.drawImage(this.image, 0, 0)
};
CanvasImage.prototype.blur = function(a) {
this.context.globalAlpha = .5;
for (var b = -a; a >= b; b += 2) for (var c = -a; a >= c; c += 2) this.context.drawImage(this.element, c, b), c >= 0 && b >= 0 && this.context.drawImage(this.element, -(c - 1), -(b - 1));
this.context.globalAlpha = 1
},