“element.position()is null”错误需要解决 [英] "element.position() is null" error needs solving
问题描述
我收到了一个
Error: element.position() is null
Source File: http://nothingcantouchme.com/js/fGallery.jquery.js
Line: 20
网站: http://nothingcantouchme.com
有人可以帮助我识别和解决这个错误?这是为我的Fancybox弹出窗口我已经写的拖车造成问题。我确信我在索引文件的某个地方犯了一个错误,因为我向你保证,fgallery.jquery.js文件不是问题...
Can someone kindly assist me in identifying and solving this error? It is causing issues for my Fancybox popup I have written for the trailer. I am sure that I have made a mistake in the index file somewhere as I assure you that the fgallery.jquery.js file is not the issue...
编辑:注意,这个错误导致我的大多数jquery脚本的问题,而不只是Fancybox一个。
Noticed that this error causes problems with most of my jquery scripts and not just the Fancybox one.
推荐答案
'最佳'。所以,尝试从fGallery.jquery.js中删除下面的行。
There is not style property called 'top'. So, try removing below line from fGallery.jquery.js.
clone.css('top', element.position().top);
如果需要,您可以在下面添加
Instead if required you can add below line instead
clone.css('vertical-align', 'top');
这篇关于“element.position()is null”错误需要解决的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!