2015年5月5日
摘要: 遮罩层特效(根据鼠标进入离开方向出现) Climber's Delight Climber's Delight Climber's Delight ... 阅读全文
posted @ 2015-05-05 16:45 转角遇到谁 阅读(448) 评论(0) 推荐(0)
摘要: 举例:$("input").attr("checked") //返回 checked 或 undefined$("input").prop("checked") //返回 true 或 false 阅读全文
posted @ 2015-05-05 16:28 转角遇到谁 阅读(134) 评论(0) 推荐(0)
摘要: //构造函数function Cat(name,color){ this.name=name; this.color=color;}//原型Cat.prototype={ run:function(){ //操作 alert(this.name+"run"); }, mew:functio... 阅读全文
posted @ 2015-05-05 16:08 转角遇到谁 阅读(211) 评论(0) 推荐(0)
摘要: word-break:break-all和word-wrap:break-wordword-break:break-all 到达边界时它会把单词截断word-wrap:break-word 到达边界时它会把单词看成一个整体换到下一行 阅读全文
posted @ 2015-05-05 15:59 转角遇到谁 阅读(156) 评论(0) 推荐(0)
摘要: 1、grayscale用法: -moz-filter: grayscale(100%) ; -webkit-filter: grayscale(100%); -ms-filter: grayscale(100%); -o-filter: grayscale(100%); filter: graysc... 阅读全文
posted @ 2015-05-05 15:31 转角遇到谁 阅读(235) 评论(0) 推荐(0)
  2015年5月4日
摘要: 一、使用background-position的四个值语法例如:background-position:right20pxbottom10px;/* ie7,ie8不支持 */二、使用 calc()比如:background-position:calc(100%-20px)calc(100%-10p... 阅读全文
posted @ 2015-05-04 16:05 转角遇到谁 阅读(3421) 评论(0) 推荐(0)