【发布时间】:2011-05-27 07:23:02
【问题描述】:
在我正在开发的网站上,我正在使用 CurvyCorners.net jQuery 插件,圆角在 Firefox/safari/ie7 兼容模式下工作...当我在 IE8 中加载页面时,出现 JS 错误并且脚本不执行。有问题的 URL/脚本的链接是:http://tccyclist.com/modx/index.php?id=16
错误:`
Webpage error details
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; HPNTDF; InfoPath.2; .NET4.0C)
Timestamp: Fri, 17 Dec 2010 18:48:46 UTC
Message: 'exec(...).1' is null or not an object
Line: 33
Char: 39
Code: 0
URI: https://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js
`
谷歌搜索让我想到了这一点:
For those of you using curvycorners.js version 2.0.4 from the zip file and getting an IE8 error 'exec(...).1' is null or not an object ... you may want to check to see if your div has a microsoft.gradient filter on it. This version of the script breaks on line 1 char 13,871...
var n=filter?parseInt(/alpha\(opacity.(\d+)\)/.exec(filter)[1])
...is expecting you have applied an alpha (opacity) filter and breaks if you have applied a gradient! I didn't check this on the beta or SVN (I believe these versions fail silently).
HTH-
我使用透明 PNG 作为背景图像,但我不确定如何处理他在其中描述的内容。任何人都可以提供正确方向的任何指示吗?
【问题讨论】:
标签: jquery internet-explorer jquery-ui internet-explorer-8 rounded-corners