Jquery bxslider仅在IE中与slideToggle冲突
我发现了这个jquery插件,除了IE之外,它工作得非常好 如果在代码中插入bxslider,jquery幻灯片切换将失败Jquery bxslider仅在IE中与slideToggle冲突,jquery,Jquery,我发现了这个jquery插件,除了IE之外,它工作得非常好 如果在代码中插入bxslider,jquery幻灯片切换将失败 <div> <span><a href="#" class="tabbutton" id="tabbtnA">Visual</a></span> <span><a href="#" class="tabbutton" id="tabbt
<div>
<span><a href="#" class="tabbutton" id="tabbtnA">Visual</a></span>
<span><a href="#" class="tabbutton" id="tabbtnB">Keywords</a></span>
</div>
<div id="tabA" class="tabcontent">
1<br />
2<br />
3
</div>
<div id="tabB" style="display: none;" class="tabcontent">
test<br />
test<br />
test
</div>
<script>
$(document).ready(function () {
$('#tabbtnA').click(function () {
$('#tabA').slideToggle(400);
$('#tabB').slideToggle(200);
});
$('#tabbtnB').click(function () {
$('#tabB').slideToggle(400);
$('#tabA').slideToggle(200);
});
});
</script>
--工作--
谢谢你提供的信息。我也犯了同样的错误。 当我运行任何jQuery动画功能(动画、滑动切换等)时,我在IEs中得到一个脚本错误(
<script src="http://code.jquery.com/jquery-latest.js" type="text/javascript"></script>
<script src="http://bxslider.com/sites/default/files/jquery.bxSlider.min.js" type="text/javascript"></script>
/* here is line 8602 */
fx.elem.style[ fx.prop ] = (fx.prop === "width" || fx.prop === "height" ? Math.max(0, fx.now) : fx.now) + fx.unit;
<script src="http://bxslider.com/sites/default/files/jquery.bxSlider.min.js" type="text/javascript"></script>
<script src="http://code.jquery.com/jquery-latest.js" type="text/javascript"></script>
jQuery.fx.prototype.cur = function () {
if (this.elem[this.prop] != null && (!this.elem.style || this.elem.style[this.prop] == null)) {
return this.elem[this.prop]
}
var a = parseFloat(jQuery.css(this.elem, this.prop));
return a
}