flu*_*xus 4 jquery scrollto internet-explorer-9
我现在注意到一些简单的jQuery不能用于移动IE9和IE10.我有一些版权链接和简单的滑动联系表单,它使用animate().我还将scrollTo插件与jQuery结合使用.我尝试了不同的版本,但仍然没有解决方案.也许我错过了一些明显的东西.
以下是一个版权链接的代码以及用于打开和关闭的联系表单的代码.
$('#privacy').click(function(){
$('#copyright').hide('fast');
$('#policy').toggle('slow');
$.scrollTo('+=800px', 800, { axis:'y' });
});
$('#plusSign').click(function(){
if ($('#contactFormHolder').hasClass('active')){
$('#contactFormHolder').animate({top:'-200px'},1000).removeClass('active');
}else{$('#contactFormHolder').animate({top:'0px'},1000).addClass('active');}
});
Run Code Online (Sandbox Code Playgroud)
您的标记无效,特别是脚本标记格式:
更改:
<script type="text/javascript ">
Run Code Online (Sandbox Code Playgroud)
至:
<script type="text/javascript">
Run Code Online (Sandbox Code Playgroud)
'javascript'之后删除空格
干杯!