English 中文(简体)
jj 查询:单击以扩大和移动
原标题:jQuery: click to enlarge and move
我带来了关于jQuery的又一个问题 :
所以我有这个代码 :
> > 。 ({width: 7em, h8: 7em: 7em} ; $(# block4}); $(# blocket5) 。 ({witth: 7em, h8: h8: leightem, do/ pown) 。
最佳回答
$(document).ready(function(){
  $(this).click(function(){
    $("#block1").animate({width:"7em",height:"7em"});
    $("#block2").animate({width:"7em",height:"7em"});
    $("#block3").animate({width:"7em",height:"7em"});
    $("#block4").animate({width:"7em",height:"7em"});
    $("#block5").animate({width:"7em",height:"7em"},function(){
       $(this).animate({width:"20em",height:"20em",top:"4em",left:"8em"});
    });
  });
});

1 1 1 缺少第 7 行 "$" ("# block5") 中的一个封口支架。 nimate( {width: "7em", hleight: "7em" ) }, 函数 () { ” 。

2) 还需要包括jquery 文件

3)至动画 u 需要给高度和宽度大于元素值的当前高度和宽度,才能看到效果,即大于7米,因为 u 已经给过 7em 。

4) 也不存在对元素的识别信息, 正如我在您的jsFiddle 链接中发现的那样。

上述所有各点都基于链接http://jsfiddle.net/q5RwE/2/

问题回答

更改您的代码, 更改类似这样的代码

纳米( {宽度 : "7em", 高度 : "7em" ) ;





相关问题
CSS working only in Firefox

I am trying to create a search text-field like on the Apple website. The HTML looks like this: <div class="frm-search"> <div> <input class="btn" type="image" src="http://www....

image changed but appears the same in browser

I m writing a php script to crop an image. The script overwrites the old image with the new one, but when I reload the page (which is supposed to pickup the new image) I still see the old one. ...

Firefox background image horizontal centering oddity

I am building some basic HTML code for a CMS. One of the page-related options in the CMS is "background image" and "stretch page width / height to background image width / height." so that with large ...

Separator line in ASP.NET

I d like to add a simple separator line in an aspx web form. Does anyone know how? It sounds easy enough, but still I can t manage to find how to do it.. 10x!

热门标签