【发布时间】:2010-07-08 19:30:04
【问题描述】:
我是 JQuery 的新手。
我正在尝试在我的 HTML 网页中添加一些代码来更改光标,
但我不确定这是否是单独使用 JQuery 而不是在外部 CSS 中进行一些自定义声明的最佳方法。
(不知道 JQuery 有没有内置的 CSS 属性。)
这是我非常简单的 HTML 网页的代码:
<script type="text/javascript">
$(document).ready(function(){
$("#replybox").draggable();
$("#closed").mouseover(function(){
$("#closed").css("cursor","pointer");
});
});
</script>
<div id="replybox">
<form>
<table border="2">
<tr><td align="center" bgcolor="#FFAAAA">
<span id="closed">Press here to close this box</span></td></tr>
<tr>
<td align="center">
Content:<textarea name="data[Reply][quote]" id="data[Reply][quote]" cols="72" rows="18">Helloworld</textarea>
</td>
</tr>
</table>
</form>
</div>
请指教。
【问题讨论】:
-
忘记 JQuery。你想要彗星光标。 ::鸭子::