css+js点击后d出大图问题

css+js点击后d出大图问题,第1张

先把控制大小!!

点击后!大小auto!!

再次点击大小还原!!

<script type="text/javascript">    
$(document)ready(function(){    
  
$("#ck")children('img')click(function(){
if( $("this")hasClass('current')){ 
$(this)next("ul")removeClass("current");
$("this")css('width',"auto");
$("this")css('height',"auto");
}else{
$(this)addClass("current");
$("this")css('width',"50px");
$("this")css('height',"50px");
}
});

没试过!!你先试下吧!!

方法/步骤分步阅读
1
/6
打开编辑器。
2
/6
创建html文档
3
/6
创建css文档。
4
/6
添加动画。
5
/6
加上旋转角度就会开始旋转。
6
/6
完善一下时间即可完成。


欢迎分享,转载请注明来源:内存溢出

原文地址: https://www.outofmemory.cn/yw/13399467.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2023-07-29
下一篇 2023-07-29

发表评论

登录后才能评论

评论列表(0条)

保存