【发布时间】:2012-03-13 19:35:57
【问题描述】:
<div class="form_div">
<form name="first" class="dirs" method="post" action="">
<table>
<tr>
<td>
<img src="path..." class="info">
<div class="tip">
<p>Some text</p>
</div>
</td>
</tr>
</table>
</form>
</div>
<script type="text/javascript">
$(document).ready(function() {
$(".info").tip({ effect : 'slide'});
});
</script>
我想从 div > form > table > tr > td 中选择带有类提示和 img 标签类信息的 div。但我无法使用脚本中的功能选择它。 选择器没有找到 img 标签和带有类提示的 div。 我是不是哪里出错了?
【问题讨论】:
-
除了 jQuery
.tip({})之外,您还使用哪些 javascript 库/插件@不是我听说过的功能。一旦你选择了你的图像/div,你想在元素上应用什么 -
@ManseUK I
m trying to select the img tag first,and then when the mouse will be over the img tag the tip class will apear with the effect slide. @Simon West im 使用这个cdn.jquerytools.org/1.2.6/full/jquery.tools.min.js
标签: javascript html selector