Quickflip 2插件-仅将图像翻转一次? [英] Quickflip 2 Plugin - only having the image flipped once?

查看:107
本文介绍了Quickflip 2插件-仅将图像翻转一次?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Quickflip 2插件( http://jonraasch.com/blog/quickflip-2-jquery-plugin/comment-page-3#comment-3562 ),以便在单击图像时将图像翻转到另一图像.

I am using the Quickflip 2 plugin (http://jonraasch.com/blog/quickflip-2-jquery-plugin/comment-page-3#comment-3562) to have images flip to another image when they are clicked.

但是,我试图让用户仅单击图像就可以使他们只能将图像翻转一次而不能将其翻转回去.

However, I am trying to make it possible for the user to do only one click on the image so that they can only flip the image over once and not be able to flip it back.

在我的示例中( http://jsfiddle.net/gJh29/),您可以看到自己是能够无限次翻转图像.我正试图让它们翻转一次.

In my example (http://jsfiddle.net/gJh29/) you can see that you are able to flip the images infinitely many times. I am trying to just have them flip once.

推荐答案

为使快速翻转正常工作,需要设置高度和宽度.另外,您不需要调用$(function(){});. 2倍 您应该具有以下内容: http://jsfiddle.net/hitmanDX/KHYR9/2/

In order for quick flip to work properly, the heights and widths need to be set. Also you don't need to call $(function() {} ); 2x. You should have something like this: http://jsfiddle.net/hitmanDX/KHYR9/2/

这篇关于Quickflip 2插件-仅将图像翻转一次?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆