JQuery -2

 

$('#celebs tr.zebra').removeClass('zebra'); 移除当前节点的zebra class.

$('#celebs tr:even').addClass('zebra');
$('#button_id').click(function(){//logic}):     button handler register
$selector.is.(":attr_name):  return true/false.
 $('#disclaimer').toggle():  根据点击的次数自动进行二元状态的切换/visible/invisible
  $('selector').val('value'):   设置value。
$('selector').attr('key', value);
$('new element').insertAfter('#id');插入已知的某个元素之后。
Action:
  prependTo(); insert the begining of the element.
  appendTo():  append to the end of the element.
$('p/h2').text('new value')/html('new value'):  自动替换文本信息.
Animation:
   $('selector').fadeIn/fadeOut():  Category: slow/fast/normal/milisecond(3000,3s).
   $('selector').toggle('slow'):   height/width/opacity: animate in changes.
   $('selector').slideToggle('slow', function(){//logic }):  toggle with slide animation.
   $(selector).mouseover; addClass
   $(selector).mouseout.removeClass:  实现浮动hover效果。
该hover方法可以实现多个function的传入.
 $('#celebs tbody tr').hover(function(){
           $(this).addClass('zebra');
        },
        function(){
           $(this).removeClass('zebra');
        });
   toggleClass(class_name):  indicate the switch between the single-click and double clicking.
--------------------------------------------------------------------------------------------
border-bottom: 设置文字底线,基于border.
border-style:  边框的风格(solid, dotter。。。).

<span> 标签被用来组合文档中的行内元素。


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值