摘要:
阅读全文
摘要:
阅读全文
摘要:
ajax (Asynchronous JavaScript and XML) 异步Javascript和XML 用javascript异步形式去操作XML(ajax是javascript的一个内置对象,用来请求数据) 无刷新页面的情况下,获得数据,通过Ajax对象发送请求(可加载某一片段数据)、 使 阅读全文
摘要:
$(document).ready(function(){ var p=0,t=0; $(window).scroll(function(e){ p = $(this).scrollTop(); if(t<=p){ //下滚 }else{ //上滚 } t = p; //更新上一次scrollTop的值 }) }) 阅读全文
摘要:
方法一:css实现居中(不足:需要提前知道元素的宽度和高度) 方法二:css3实现水平垂直居中(无论元素的尺寸是多少,都可以居中,不过只支持IE8以上的浏览器,移动端可忽略) 方法三:auto实现居中 阅读全文
摘要:
例: 参数及含义: animation-name: 动画的名字 animation-duration: 动画完成一个周期所花费的秒数,默认是0 animation-timing-function: 规定动画的速度曲线,默认是ease(动画以低速开始,然后加块,在结束前变慢); linear(动画从头 阅读全文
摘要:
.upload_files{ position: relative; overflow: hidden; } .upload_icon{ position:absolute; display:block; outline:none; filter:alpha(opacity=0); -moz-opacity:0; ... 阅读全文
摘要:
阅读全文