摘要:
Document 阅读全文
摘要:
HTML代码:Document 阅读全文
摘要:
function getStyle(obj,attr){ if(obj.currentStyle) { return obj.currentStyle[attr]; } else { return getComputedStyle(obj,false)[attr]; }}// var timer=null;function startMove(obj,attr,iTarget){ clearInterval(obj.timer); obj.timer=setInterval(function(){ // ... 阅读全文
摘要:
内容来自这里1)添加额外标签 添加额外标签 .main{float:left;} .side{float:right;} .footer优点:通俗易懂,容易掌握缺点:可以想象通过此方法,会添加多少无意义的空标签,有违结构与表现的分离,在后期维护中将是噩梦,这是坚决不能忍受的,所以你看了这篇文章之后还是建议不要用了吧。2)使用 br标签和其自身的 html属性这个方法有些小众,br 有 clear=“all | left | right | none” 属性2)使用 br标签和其自身的 html属性.main{float:left;}.side{float:right;}.footer优... 阅读全文
摘要:
function getStyle(obj,attr){ if(obj.currentStyle) { return obj.currentStyle[attr]; } else { return getComputedStyle(obj,false)[attr]; }} 阅读全文
摘要:
刚才在仿照迅雷无线的首页做banner的过程中,碰到的这个问题。两个物体分步运动,其中B在A运动结束之后才能继续进行。。。主要的运用了JQ里面的animaet的回调函数。例子: Document 阅读全文