FreeCodeCamp练习二
2016-07-09 13:30
399 查看
一、Learn how Script Tags and Document Ready Work
并不明白这行是干嘛的……
二、Target HTML Elements with Selectors Using jQuery
jQuery都是通过“$”开始,通过选择器来选择一个元素的,然后操作元素做些改变。(被卡住,没办法,跳过了…)
三、Target Elements by Class Using jQuery
给所有class为text-primary的元素添加shake class。
四、Target Elements by ID Using jQuery
五、Target the same element with multiple jQuery Selectors
三种选择器:
("button")、class选择器:(“.btn”)、id选择器:$(“#target1”)
<script>$(document).ready(function(){});</script>
并不明白这行是干嘛的……
二、Target HTML Elements with Selectors Using jQuery
jQuery都是通过“$”开始,通过选择器来选择一个元素的,然后操作元素做些改变。(被卡住,没办法,跳过了…)
<script> $(document).ready(function() { $("button").addclass("animated bounce"); }); </script>
三、Target Elements by Class Using jQuery
<script> $(document).ready(function() { $("button").addClass("animated bounce"); $(".text-primary").addClass("animated shake"); }); </script>
给所有class为text-primary的元素添加shake class。
四、Target Elements by ID Using jQuery
<script> $(document).ready(function() { $("button").addClass("animated bounce"); $(".well").addClass("animated shake"); $("#target3").addClass("animated fadeOut"); }); </script>
五、Target the same element with multiple jQuery Selectors
三种选择器:
("button")、class选择器:(“.btn”)、id选择器:$(“#target1”)
相关文章推荐
- make学习笔记(一)
- MySQL索引背后的数据结构及算法原理
- js获取css属性值
- GB码 BIG5码区别是什么?
- 【算法技巧】尺取法 POJ 3061 Subsequence
- POJ 3320 Jessica's Reading Problem (STL)
- Android设计模式之命令模式、策略模式、模板方法模式
- ThinkPHP5开发(二)实现带后台验证的注册功能
- 获取短信验证码时的倒计时按钮实现
- 数论快速入门(同余、扩展欧几里德、中国剩余定理、大素数测定和整数分解、素数三种筛法、欧拉函数以及各种模板)
- 牛客网程序员面试金典:1.2——原串翻转(java实现)
- 红黑树--(下)
- 需要仔细读的书 (July 8, 2016)
- UNIX网络编程之源代码的编译和使用
- 平衡数之Treap
- 为什么Dialog不能用Application的Context
- Android开发 AndroidStudio添加RecycleView,解决预览失败
- 二叉树应用-最小堆类模板的实现(数据结构基础 第6周)
- ubuntu安装Eclipse无图标(手动创建软件图标)
- WordPress忘记账户密码最简单的解决方案