gpt4 book ai didi

javascript - Flexslider 适用于除 IE 10 以外的所有应用

转载 作者:搜寻专家 更新时间:2023-10-31 23:06:57 25 4
gpt4 key购买 nike

Flexslider 适用于除 IE 10 之外的所有实例。网站是 www.nybreeder.com

有人可以指出编码中的错误吗?

不确定这是不是版本错误以及如何更正,或者它只是一个悬而未决的代码行需要完成..我的眼睛开始痛了。

谢谢

<!DOCTYPE html>
<html lang="en">
<head>
<title>Westchester NY Puppies for Sale </title>
<meta charset="utf-8" />
<meta name="description" content="We offer the finest selection of purebred and designer puppies in Westchester NY." />
<meta name="publisher" href="https://plus.google.com/104126152754968851553" />
<meta name="viewport" content="width=device-width; initial-scale=1.0" />
<link rel="stylesheet" href="css/style.css" media="screen" />
<script src="js/jquery-1.7.2.min.js"></script>
<script src="js/superfish.js"></script>
<script src="js/jquery.responsivemenu.js"></script>
<script src="js/jquery.flexslider-min.js"></script>
<script src="js/cufon-yui.js"></script>
<script src="js/KleinSlabserif-Light_300.font.js"></script>
<script src="js/cufon-replace.js"></script>
<script src="js/jquery.equalheights-rt.js"></script>
<script src="js/jquery.easing.1.3.js"></script>
<script src="js/jquery.ui.totop.js"></script>
<script src="js/script.js"></script>
<script>
$(function(){
if (($.browser.msie) && ($.browser.version < '9.0')) {
$('.flexslider').flexslider({
animation: "slide",
slideshow: true,
slideshowSpeed: 7000,
animationDuration: 600,
prevText: "Previous",
nextText: "Next",
controlNav: true,
}) } else {
$('.flexslider').flexslider({
animation: "fade",
slideshow: true,
slideshowSpeed: 7000,
animationDuration: 600,
prevText: "Previous",
nextText: "Next",
controlNav: true,
}); }
})
</script>

最佳答案

看起来“9.0”不应该用引号引起来,也许应该是 10?

$(function(){
if (($.browser.msie) && ($.browser.version < 10)) {
$('.flexslider').flexslider({
animation: "slide",
slideshow: true,
slideshowSpeed: 7000,
animationDuration: 600,
prevText: "Previous",
nextText: "Next",
controlNav: true,
});
} else {
$('.flexslider').flexslider({
animation: "fade",
slideshow: true,
slideshowSpeed: 7000,
animationDuration: 600,
prevText: "Previous",
nextText: "Next",
controlNav: true,
});
}
});

关于javascript - Flexslider 适用于除 IE 10 以外的所有应用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16574612/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com