简单:我怎样才能使这个jQuery插件工作?

时间:2010-08-04 22:43:23

标签: jquery plugins

我找到了一个可以缩放图像并将图像定位为背景的插件。我想使用它,但没有文档。

这是插件: http://wearebuild.com/wp-content/themes/build/js/jquery.bleedImage.js

它说:
用法:$('#img')。bleedImage
但我不知道这意味着什么。

如何使用“bleedImage”类来使用我的图像?

谢谢!

1 个答案:

答案 0 :(得分:0)

  1. 在中包含jQuery本身后,在页面中包含该文件。

  2. 加载DOM时,请调用:

    $('.bleedImage').bleedImage();