2017年6月8日

摘要: $(".img2").click(function(){ i=parseInt((Math.random()+5)*360)+i; var aa=i+"deg" console.log(aa)$(".img1").css({transform:"rotate("+i+"deg)"});$(".img 阅读全文
posted @ 2017-06-08 13:55 sameer的史迪仔 阅读(142) 评论(0) 推荐(0) 编辑
 
摘要: <div> <img src="a.png"/> </div> 让img的宽高都等于100%, 然后让外部的div宽度等于80%,高度auto就行了 阅读全文
posted @ 2017-06-08 10:24 sameer的史迪仔 阅读(187) 评论(0) 推荐(0) 编辑