12 2012 档案

摘要:css 运动背景原理:animation-name: bgmove;animation-duration: 100s;animation-timing-function: linear;animation-delay: 0;animation-iteration-count: infinite; animation介绍:属性描述animation指定定义所有动画属性(除了 animation-play-state 外)的速记值。animation-delay指定显示动画前动画循环内的偏移(从循环开始的时间量)。 此属性值应采用秒作为单位(后面附加“s”—例如 animation-delay: 阅读全文
posted @ 2012-12-24 01:28 前端咖 阅读(1312) 评论(0) 推荐(0) 编辑
摘要:官方网站:http://jscrollpane.kelvinluck.com/demo:http://jscrollpane.kelvinluck.com/auto_reinitialise.htmlscrollToBottom方法滚动到底部$(function(){ var settings = { showArrows: true, autoReinitialise: true }; var pane = $('.scroll-pane') pane.jScrollPane(settings); var api = pane.dat... 阅读全文
posted @ 2012-12-16 23:53 前端咖 阅读(604) 评论(0) 推荐(0) 编辑
摘要:autocomplete实现原理主要用在input 和 textarea这两个标签上,为这标签增加键盘监听事件和提示列表添加鼠标事件。例如:input的id为txt为input增加键盘监听事件(keyup) var mindex = -1; $("#txt").keyup(function(e){ e = e || window.event; if(e.keyCode !== 27 && e.keyCode !== 38 && e.keyCode !== 40){ _mtxt = $(this).val(); ... 阅读全文
posted @ 2012-12-10 00:49 前端咖 阅读(1111) 评论(0) 推荐(0) 编辑
摘要:为字体设置背景:为每一个字设置span标签,使span变成成为inline-block元素,并设置背景。span{ display: inline-block; width: 24px; height: 24px; line-height: 29px; text-align: center; font-size:12px; background: url(http://images.cnblogs.com/cnblogs_com/kuikui/354173/t_apple.jpg) no-repeat; overflow: hi... 阅读全文
posted @ 2012-12-02 23:49 前端咖 阅读(326) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示