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>
运行代码
查看全文
相关阅读:
application , application pool., W3wp ,httpapplication, domain
HDFS
spark
Hive
container docker
Azure&& hdinsight
Native Code
拥抱重构
六个重构方法可帮你提升80%的代码质量
重构 小步进行曲
原文地址:https://www.cnblogs.com/jikey/p/1753130.html
最新文章
Processor Speculative & pipeline
set and Sequence theory
Memory Barriers ,cache-coherency
c# Papers
Java Memory Model
Java books list
memory CPU cache books
java perf
Managing Contexts in a Minifilter Driver
network Driver , TDI(Transport Driver Interface) Drivers
热门文章
I/O Completions port
rootkits
C++ Language
Driver development
mini filter driver sql server
intercepting IO request
I/O Completion Ports
java concurrency
Generics Variance
java jvm perf
Copyright © 2011-2022 走看看