08 2012 档案
摘要:<!--开始--><div class="ind_cityYelp"> <div class="ind_title"> <h2 class="ind_title_h">目的地点评</h2> (<a href="#" title="更多目的地">更多</a>)</div> <div class="ind_cityYelp_roll" id="citycommentin
阅读全文
摘要:代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> 1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xh
阅读全文
摘要:/*** @DOM* <div id="marquee">* <ul>* <li></li>* <li></li>* </ul>* </div>* @CSS* #marquee {width:200px;height:50px;overflow:hidden;}* @Usage* $('#marquee').superMarquee(options);* @options* distance:200,//一次滚动的距离* duration:20,//缓动效果,单次
阅读全文
摘要:1.jQuery的界面插件 Ninja UIQuery 是一个非常优秀的 JavaScript 框架,而且还有相当多的插件。其中的一些UI插件也相当的给力,比如 Ninja UI,是一款界面插件,使用它将能给你的项目增色不少。此插件包含有幻灯,智能提示等常见的效果。 目前的文档还不是很全,但是官方提供的例子已...2.jQuery的UI框架 Chico UI和 jQuery UI 一样,Chico UI 包含 auto-complete, blink, carousel, countdown, date-picker, dropdown, expand, calendar 等诸多逐渐,同时还提
阅读全文
摘要:强制不换行 div{white-space:nowrap;}自动换行div{ word-wrap: break-word; word-break: normal; }强制英文单词断行div{word-break:break-all;}CSS设置不转行:overflow:hidden 隐藏white-space:normal 默认 pre 换行和其他空白字符都将受到保护nowrap 强制在同一行内显示所有文本,直到文本结束或者遭遇 br 对象设置强行换行:word-break: normal ; 依照亚洲语言和非亚洲语言的文本规则,允许在字内换行break-all : 该行为与亚洲语言的nor.
阅读全文
摘要:原理很简单: onmouseover、onmouseout执行业务代码时使用setTimeout进行延时,第二次触发的时候先清除掉前面的setTimeout。 原理 代码如下: var timer; document.getElementById('test').onmouseover = function () { clearTimeout(timer); timer = setTimeout(function () { alert('over') }, 150); }; document.getElementById('test').onmo
阅读全文