摘要: css实现三角形 工作中用到做个笔记.tipArrow { /*右边有颜色,其他透明*/ border-color: transparent #e00 transparent transparent; border-style: solid; border-width: 6px 6px 6px 0px; padding: 0; width: 0; height... 阅读全文
posted @ 2013-09-05 18:48 WEB小蜗牛 阅读(383) 评论(0) 推荐(0) 编辑
摘要: //去除数组里的重复 Array.prototype.distinct = function() { var a = {}, c = [], l = this.length; for (var i = 0; i < l; i++) { var b = this[i]; var d = (typeof b) + b; if (a[d] === undefined) { c.push(b); a[d] = 1; ... 阅读全文
posted @ 2013-09-05 18:47 WEB小蜗牛 阅读(133) 评论(0) 推荐(0) 编辑
摘要: 网页陶吧 ONE http://homepage.yesky.com/ WEB标准 是 结构(Structure) 、表现(Presentation) 和 行为(Behavior) 叁方面构成的标准集合 网页陶吧 TWO http://homepage.yesky.com/ WEB标准 是 结构(Structure) 、表现(Presentation) 和 行为(Behavior) 叁方面构成... 阅读全文
posted @ 2013-09-05 18:46 WEB小蜗牛 阅读(1889) 评论(0) 推荐(0) 编辑
摘要: 最近工作中使用到js数组去重复,做个笔记 //去除数组里的重复 Array.prototype.distinct = function() { var a = {}, c = [], l = this.length; for (var i = 0; i < l; i++) { var b = this[i]; var d = (typeof b) + b; if (a[d] === undefined) { c.push(b); a[d] = 1... 阅读全文
posted @ 2013-09-04 09:18 WEB小蜗牛 阅读(351) 评论(0) 推荐(0) 编辑
摘要: <!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/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=u 阅读全文
posted @ 2012-08-10 14:34 WEB小蜗牛 阅读(147) 评论(0) 推荐(0) 编辑