选择器

<!doctype html>
<html lang="en">
<head>
 <meta charset="UTF-8">
 <title>Document</title>
 <script type="text/javascript" src="jquery-1.11.1.min.js"></script>
</head>
<body>
 <div id="bottom">
  <ul>
   <li>技术服务热线</li>
   <li>Copyright&copy</li>
  </ul>
 </div>
 <ul>
  <li>技术服务热线</li>
  <li>Copyright&copy</li>
 </ul>
 <style type="text/css">
  #bottom{
   background-image:url(images/01.jpg);
   width:800px;
   height:58px;
   clear:both;
   text-align:center;
   padding-top:10px;
   font-size:9pt;
  }
  .copyright{
   color:#FFFFFF;
   list-style:none;
   line-height:20px;
  }
 </style>
  <script type="text/javascript">
   $(douument).ready(function(){
    $("div ul").addClass("copyright");
   });
  </script>
</body>
</html>

<!DOCTYPE html>
<html>
 <head>
  <meta charset="utf-8" />
  <title></title>
  <script type="text/javascript" src="jquery-1.11.1.min.js"></script>
 </head>
 <body>
  
  <form id="form1" name="form1" method="post" action="">
   姓名:<input type="text" name="name" id="name" />
   <br/>
   籍贯:<input name="native" type="text" id="native" />
   <br/>
   生日:<input type="text" name="birthday" id="bidthday" />
   <br/>
   <span>
    <input type="button" name="change" id="change" value="换肤"/>
   </span>
   <input type="button" name="default" id="default" value="恢复默认"/>
   <br/>
  </form>
  
   
   <style type="text/css">
    input{
     margin: 5px;
    } 
    .input{
     font-size: 12pt;
     color: #333333;
     background-color:#cef;
     border: 1px solid #000000;
    }
   </style>
   <script type="text/javascript">
    $(document).ready(function(){
     $("#change").click(function(){
      $("form > input").addClass("input");
      
     });
     $("#default").click(function(){
      $("form > input").removeClass("input");
     });
    });
   </script>
</body>
</html>
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值