
JS兼容
vip545058
这个作者很懒,什么都没留下…
展开
-
iframe的onreadystatechange事件
firefox不支持iframe的onreadystatechange事件,这个让我调试一下下午。原创 2014-04-16 17:23:49 · 1789 阅读 · 0 评论 -
样式空格
在我们用js来拼页面的时候,有时候会涉及到样式拼凑问题。 l原创 2014-05-04 09:58:00 · 698 阅读 · 0 评论 -
swapNode兼容处理
swapNode原创 2014-04-17 16:30:35 · 1609 阅读 · 0 评论 -
贴边(效果还不完善)
左边 中间 右边 $(document).ready(function () { $("#button2").click(function () { $("#test1").hide(); var a = $("#test1").display; alert(a); document.getElementById("te原创 2014-04-18 13:37:14 · 737 阅读 · 0 评论 -
firefox获取事件源以及swapNode兼容处理
function FixPrototypeForGecko(){ window.navigate=function(url){ location.href=url; }; HTMLElement.prototype.__defineGetter__("runtimeStyle",element_prototype_get_runtimeStyle); HTML原创 2014-05-06 12:14:27 · 649 阅读 · 0 评论 -
insertAdjacentElement兼容处理
//向目标元素对象插入一个新的子元素if(typeof HTMLElement!="undefined" && !HTMLElement.prototype.insertAdjacentElement){ HTMLElement.prototype.insertAdjacentElement = function(where,parsedNode) { sw原创 2014-05-06 12:09:51 · 634 阅读 · 0 评论 -
div失去焦点事件
我们都知道只有Input,text原创 2014-04-22 11:08:31 · 4606 阅读 · 0 评论