作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
这段代码在 IE 中淡化了 div 效果。在 Firefox 3.0.8 中,随着淡入淡出时间的推移,div 会立即消失。我找不到任何人提到这个问题。
$(function() {
$("#show").click(function() {
$("#show").fadeOut('slow');
});
});
<div id="show">this is where to show it</div>
最佳答案
我整个早上都在为这个问题苦苦思索,终于找到了我的问题......标题为“Scripts/jquery-1.3.2-vsdoc.js”
/* * This file has been commented to support Visual Studio Intellisense. * You should not use this file at runtime inside the browser--it is only * intended to be used only for design-time IntelliSense. Please use the * standard jQuery library for all production use. * * Comment version: 1.3.2a */
当他们说“你不应该在浏览器内运行时使用这个文件”时,他们确实是这么说的......
所以请确保您使用的是非-vsdoc版本的jquery和jquery-min
关于jquery 淡入淡出效果在 FF 中不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/748113/
我是一名优秀的程序员,十分优秀!