$.fn.circle = function (size) {
size = size.replace("px", "");
var _size = size==null? Math.min(this.height(),this.width()) :size;
this.height(_size);
this.width(_size);
this.corner((_size/2) + "px");
}
恰好有需要就寫了,不過好像不太實用XD
基於 http://jquery.malsup.com/corner/
沒有留言:
張貼留言