$(“div of div”)。click(function())工作在chrome而不是IE9 [英] $("Id of div").click(function () ) is working in chrome and not in IE9

查看:90
本文介绍了$(“div of div”)。click(function())工作在chrome而不是IE9的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

HI,

我想在点击div后更改图像..

它适用于Chrome和Mozilla但它在IE9中不起作用

请建议,



提前致谢..


I want to change the images after clicking on div..
it works fine for Chrome and Mozilla but it is not working in IE9
Please suggest,

Thanks in advance..

推荐答案

它完美适用于IE 9,我测试过。但是你提到了Sharepoint网站。我不确定。可能是某些脚本被阻止了什么的。其他jQuery没有正确引用/与其他版本冲突。



所以我的建议是,请转到IE浏览器F12并看看控制台是否有任何错误是否列出。你会得到提示。
It perfectly works on IE 9, I tested. But you mentioned Sharepoint site. I am not sure about that. May be some script is blocked or something. Else jQuery is not referred correctly / conflicting with some other version.

So my suggestion is that, please go to IE browser F12 and see the console if there are any errors listed or not. You will get the hint.


你好,



早些时候我使用过background-color:transparent!important; css到div,然后div点击事件在ie9



但是现在我使用了background-Red!important;



它适用于我,所以这是与透明背景相关的问题。



谢谢。
Hi,

Earlier I had used "background-color:transparent!important;" css to the div, then div click event didn't worked in ie9

but now I have used "background-Red!important;"

It works fine for me, so this is issue associated with transparent background.

Thanks.


这篇关于$(“div of div”)。click(function())工作在chrome而不是IE9的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆