zoukankan
html css js c++ java
缓慢放大div
<style> #testzoom{border:1px solid #ccc;background:#eee;} </style> <input type="button" value="test-div" onclick="zoomDiv('testzoom')" /> <div id="testzoom" style="100px;height:100px;">This is a div</div> <script type="text/javascript"> function $(id){ return document.getElementById(id); } function zoomDiv(id){ var obj = $(id); var changeW = function (){ var obj_w = parseInt(obj.style.width); var obj_h = parseInt(obj.style.height); if (obj_h <= 350 || obj_w < 400) { obj.style.width = (obj_w + Math.ceil((400 - obj_w) / 10)) + 'px'; obj.style.height = (obj_h + Math.ceil((350 - obj_h) / 10)) + 'px'; } else { clearInterval(bw1); } } bw1= setInterval(changeW,1); } </script>
运行代码
查看全文
相关阅读:
python环境准备(2020-1-13)
git知识
toolbar的相关知识
Android开发极光推送功能实现步骤
Android开发分享功能实现步骤
使用tablayout和viewpager实现简单的页面布局
activity与fragment的交互(一个activity跳转到另一个fragment)
java中堆区和栈区的区别
WebView的基本使用
final的用法
原文地址:https://www.cnblogs.com/jikey/p/1753130.html
最新文章
springboot之搜索引擎elasticSearch的基本介绍
springboot之配置log4j2
springboot之日志管理
springboot之同步与异步
pom.xml中的xsi报错的解决方案
springboot之定时任务
阶段一 1.0.5java数据类型
阶段一 1.0.4 java中的关键字和命名规范
论文
java连接mysql
热门文章
命令行命令打开sublime text。。。
xpath定位
规格参数代码
切换句柄
dumps
parttwo
跳过cookies访问
js几种定位方法总结
python 截图screenshot处理
web-based与executable区别
Copyright © 2011-2022 走看看