Ruby's Louvre

每天学习一点点算法

导航

2013年11月1日 #

IE回车的一个怪异行为

摘要: IE中在input中回车相当于提交form,会从dom中找最近的button标签触发click事件 by 司徒正美 111 222 by 司徒正美 111 222 运行代码 阅读全文

posted @ 2013-11-01 10:40 司徒正美 阅读(1980) 评论(3) 推荐(0) 编辑

CSS3全新的背景图片方案

摘要: firefox支持指定一个元素的ID将它作为另一个元素的背景-moz-element(#ID), webkit系支持-webkit-canvas(xxxx)动态创建一个canvas作为它的背景 firefox4+ This box uses the element with the #myBackground1 ID as its background! This text is part of the backgro... 阅读全文

posted @ 2013-11-01 10:27 司徒正美 阅读(2179) 评论(0) 推荐(0) 编辑