标注图像我有flipIt()
功能翻转图像。但我想要做的是当用户点击图像时,必须创建一个动态div(背景和一些文本),然后当图像翻转时该div必须可见。翻转并与jQuery
这拨弄不工作,请帮助。
http://jsfiddle.net/RQ62f/13/
$("img").click(function(){
alert('m called');
$(this).wrap('<div class="foobar"/>');
$(this).css("-webkit-transform-style","preserve-3d");
$(this).css("-webkit-transition","all 1.0s linear");
$(this).css("transform-style","preserve-3d");
$(this).css("transition","all 1.0s linear");
$(this).css("-webkit-transform","rotateY(180deg)");
$(this).css("transform","rotateY(180deg)");
});
你有一个额外的 ''在jsfiddle中的代码中“flipIt($(this)。);”纠正错误http://jsfiddle.net/RQ62f/15/ – arjuncc 2013-05-07 07:48:46
从侧边栏添加jquery。 – SachinGutte 2013-05-07 07:52:40
类似[this](http://jsfiddle.net/RQ62f/20/)? – Vucko 2013-05-07 07:54:44