【发布时间】:2013-11-27 02:45:17
【问题描述】:
我正在使用这个 jQuery 滑出表单:
http://wpaoli.building58.com/2009/09/jquery-tab-slide-out-plugin/
在所有浏览器中运行良好,除了IE7,它在功能上给出错误:
“对象不支持函数或方法”
它所指的功能行是:
<script type="text/javascript">
$(function(){
$('.slide-out-div').tabSlideOut({
tabHandle: '.handle', //class of the element that will be your tab
pathToTabImage: 'sites/all/themes/my_theme/images/contact_tab.gif', //path to the image for the tab (optionaly can be set using css)
imageHeight: '122px', //height of tab image
imageWidth: '40px', //width of tab image
tabLocation: 'right', //side of screen where tab lives, top, right, bottom, or left
speed: 300, //speed of animation
action: 'click', //options: 'click' or 'hover', action to trigger animation
topPos: '200px', //position from the top
fixedPosition: true //options: true makes it stick(fixed position) on scroll
});
});
</script>
它适用于所有其他浏览器,即使是 IE8 也有一些样式问题,但 jQuery 仍然有效。有谁知道我如何在 IE7 中实现此功能,上面示例代码的网站可以在 IE 中找到,所以如果我使用相同的代码,它怎么会被破坏。
【问题讨论】: