1. 首页
  2. 数据库
  3. 其它
  4. jQuery 添加样式属性的优先级别方法(推荐)

jQuery 添加样式属性的优先级别方法(推荐)

上传者: 2020-12-31 18:27:20上传 PDF文件 31.13KB 热度 3次
jQuery类中添加多个属性 $('#five .a') .css({ color:'blue', border:'2px solid green', background:'blue' }); jQuer为元素添加类 $('#five .a') .addClass('funny'); HTML code <style> .funny{ font-size: 21px; background-color: gray ; padding: 10px; color: yellow ; } </style>
下载地址
用户评论