jquery图片内边框

$("img").insetBorder({
speed          : 1000,           // 1000 = 1 秒, 默认值 250
borderColor    : "orangered",    // 默认的白色 (#ffffff)
inset          : 10,             // 边框宽度, 默认值 10px
borderType     : "solid",        // 边框类型, e.g. dashed
outerClass     : "ibe_outer",    // 外包裹的类名
innerClass     : "ibe_inner"     // 类名的内边框的
});
  • text
  • text
  • text

Default

$(selector).insetBorder();
  • text
  • text
  • text

Big Border

$(selector).insetBorder({
			inset: 50
			});
  • text
  • text
  • text

Not centered

$(selector).insetBorder({
			insetleft: 60,
			insetright: 40,
			insettop: 14,
			insetbottom: 86
			});
  • text
  • text
  • text

Colored Border

$(selector).insetBorder({
			borderColor: "#000000"
			});
  • text
  • text
  • text

Slower Speed

$(selector).insetBorder({
			speed: 500
			});
  • text
  • text
  • text

Double Border

$("selector").insetBorder({
			borderType: "double"
			});

Rectangles

$("selector").insetBorder();