Web Front-End
文章平均质量分 89
hlzhao369
这个作者很懒,什么都没留下…
展开
-
Javascript trim
In programming, trim is a string manipulation function or algorithm. The most popular variants of the trim function strip only the beginning or end of the string. Typically named ltrim and rtrim res...原创 2011-08-16 00:24:51 · 77 阅读 · 0 评论 -
5 Reasons Your Javascript Stinks
Javascript gets a bad rap on the Internet, but there are few languages that are so dynamic, so widespread, and so deeply rooted in our lives as Javascript is. The low barrier of entry lead...原创 2011-09-08 10:32:17 · 113 阅读 · 0 评论 -
CSS cursor
浏览器支持 所有主流浏览器都支持 cursor 属性。 注释: Opera 9.3 和 Safari 3 不支持 url 值。 注释: 任何版本的 Internet Explorer (包括 IE8)都不支持属性值 "inherit"。 可能的值 值 描述 url 需使用的自定义光标的 URL。 注释:请在此列表的末端始终定义一种普通的光标,...原创 2011-12-27 12:44:05 · 67 阅读 · 0 评论 -
Making preformated <pre> text wrap in CSS3, Mozilla, Opera and IE
From: http://myy.helia.fi/~karte/pre-wrap-css3-mozilla-opera-ie.html Code snippets and poems often use spaces for indenting text. Pre-tag is used to display preformatted text on webpages. This ...原创 2012-01-13 20:47:19 · 124 阅读 · 0 评论 -
JavaScript操作剪贴板 - ( for IE )
bRet = [window.]clipboardData.clearData(['Text' | 'URL' | 'File' | 'HTML' | 'Image']) sData = [window.]clipboardData.getData('Text' | 'URL') bAdded = [window.]clipboardData.setData('Text' | 'URL', s...原创 2011-12-06 12:13:40 · 85 阅读 · 0 评论 -
JavaScript for in语句
var tom = {name: 'Tom', gender: 'Male', age: 17}; for (att in tom) { alert('tom.' + att + ' = ' + tom[att]); } var protocols = ['HTTP', 'FTP', 'SMTP']; for (index in protocols) { alert('p...原创 2011-12-09 15:56:07 · 80 阅读 · 0 评论