jquery - $(this).css ("background", "transparent");在 IE 中不工作

标签 jquery css internet-explorer

请帮忙:

$(this).css("background", "transparent"); 在 IE(7 和 8)中不工作。

谢谢。

最佳答案

它在 IE 7 和 IE 8 中工作得很好。

我在实际的 IE 7 和 IE 8 浏览器中对此进行了测试,它确实有效:jsfiddle.net/4L9RX/

如果您遇到它不起作用的情况,您必须展示足够多的代码以确保它是可重复的。

关于jquery - $(this).css ("background", "transparent");在 IE 中不工作,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6225221/

相关文章:

javascript - 如何在 jquery 中拆分包含 'AND' 和/或 'OR' 参数的查询?

jquery - PreventDefault() 不起作用

javascript - jQuery 添加额外的变量到 url

html - 如何为 div 设置背景并根据浏览器大小调整大小?

jquery - Internet Explorer (IE) 的 CSS/HTML 兼容性问题

JQUERY通过单击更改src,然后再更改一次

css - 如何使用背景:url(data:image/png;base64 with Retina?

javascript - 当鼠标不在链接上时,下拉菜单消失

javascript - IE11 promise 奇怪的行为

ajax - IE 中带有 jQ​​uery ajax 调用的“无传输”错误