cursor:pointer 与 cursor:hand
Author: guoshuang
这个是标准“手”形样式
这个“手”形只有IE可以看到
这是小雨手册翻译自msdn的相关内容hand : 竖起一只手指的手形光标。就像通常用户将光标移到超链接上时那样。可是 pointer 才是css2 的标准属性,压根就没有hand 这个东西。
pointer : (IE6.0) 和 hand 一样。竖起一只手指的手形光标。就像通常用户将光标移到超链接上时那样。
http://www.zvon.org/xxl/CSS2Reference/Output/prop_cursor.html
ie 5估计不认识 pointer,所以还要判断 if(document.all)
jQuery 删除标签的属性removeAttr(name)
发表于:2009年02月10日 11时 作者:dx_andy
jQuery删除标签的属性:动态控制文本标签的可读性时用到此操作:
jQuery 删除标签的属性removeAttr(name)示例代码:
<script type=”text/javascript”>
jQuery(function(){
if (jQuery(‘#Radio1′).attr(‘checked’)) {
jQuery(‘#RadioTitle’).removeAttr(‘readonly’);
} else {
jQuery(‘#RadioTitle’).attr(‘readonly’, ‘readonly’);
}
jQuery(‘#Radio0′).focus(function(){
jQuery(‘#RadioTitle’).attr(‘readonly’, ‘readonly’);
});
jQuery(‘#Radio1′).focus(function(){
jQuery(‘#RadioTitle’).removeAttr(‘readonly’);
});
});
</script>[Edit on 2004-12-29 14:57