如何使这个 jQuery 片段在 Internet Explorer 中工作? [英] How to make this jQuery snippet work in Internet Explorer?
本文介绍了如何使这个 jQuery 片段在 Internet Explorer 中工作?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如果有一段时间讨厌 IE,就是这样.此代码以一个包含内容的框开始.单击按钮时,该框应该下拉并淡入.
<script type="text/javascript" src="jquery.js"></script><script type='text/javascript'>功能测试(){var item_height = $('#test').height();$('#test').height(0);$('#test').css('opacity','0');$('#test').animate({ height: item_height, opacity: '1' },400);}<身体><!-- 下面的 div 包含示例内容--><div id="test" style='border: 1px solid black;'>内容
内容
内容
内容
内容
<!-- 测试动画的按钮--><br><br><div style='position: absolute;顶部:150px;左:10px;'><button onclick='Test();'>Test</button>