不确定如何表达这个问题所以它足够通用.(并且在我知道我在问什么之后会重新措辞).问题,我相信在JQuery .find()函数中处理变量.
问题:你可以包装$()一个DOM元素数组,或者围绕一个jQuery对象,但不能围绕一个jQuery对象
在这个时候,我能做的最好的就是这里的一个例子
之前小提琴中的问题代码在这里:
////////////////Neither of the following works////////////////
//nodelevel = nodesWithMinuses.find('div.node.level' + levelnumber);
nodelevel = $(nodesWithMinuses).find('div.node.level' + levelnumber);
////////////////Neither of the previous works////////////////
Run Code Online (Sandbox Code Playgroud) 已经尝试了几个小时,似乎可以找到如何去除这里所示的"白色差距":http://dl.dropbox.com/u/7117445/temp/gap.jpg
有问题的网站:http://www.jwschultzconstruction.com/staging/index.php
请帮忙!
答案后编辑问题:
你如何摆脱IMG和周围内容之间的差距?(以下回答)
类似这个问题:HTML严格和CSS:我如何缩小差距?