(3)选择元素——(17)练习(Exercises)
来源:互联网 发布:淘宝助理批量增加主图 编辑:程序博客网 时间:2024/05/18 02:46
To complete these exercises, you will need the index.htmlfile for this chapter, as well as the finished JavaScript code as found in complete.js. These files can be downloaded from the Packt Publishing web site at http://www.packtpub.com/support.
为了完成这些练习,你需要这一章的一个index.html文件,何忧在complete.js中的一根已经完成的js代码。这些文件可以从Packt Publishing 网站:http://ww.packtpub.com/support上下载下来。
1. Add a class of specialto all of the <li>elements at the second level of the nested list.
2. Add a class of yearto all of the table cells in the third column of a table.
3. Add the class specialto the first table row that has the word Tragedyin it.
4. Challenge: Select all of the list items (<li>s) containing a link (<a>). Add the class afterlinkto the sibling list items that follow the ones selected.
5. Challenge: Add the class tragedyto the closest ancestor <ul>of any .pdflink.
这些富有挑战的练习可能需要使用http://api.jquery.com的官方jquery文档。
1、为所有嵌套列表的第二层级的li元素添加一个special类。
2、为所有在表格中的第三列的方格加上一个year类。
3、为表格的含有Tragedy单词的第一行家还是那个一个special类
4、挑战:选择所有的含有链接(a)的列表项(li)。为选择的这些元素的后面的兄弟列表节点添加一个afterlink类。
5、挑战:为所有.pdf链接的最近的祖先ul元素添加一个tragedy类。
- (3)选择元素——(17)练习(Exercises)
- C++ Exercises(十九)
- C++ Exercises(十八)
- C++ Exercises(十四)
- C++ Exercises(十三)
- C++ Exercises(十二)
- C++ Exercises(十一)
- C++ Exercises(十)
- C++ Exercises(九)
- C++ Exercises(八)
- C++ Exercises(七)
- C++ Exercises(六)
- C++ Exercises(八)
- C++ Exercises(七)
- C++ Exercises(六)
- C++ Exercises(五)
- C++ Exercises(四)
- C++ Exercises(三)
- 查找和为某一值的两个数
- 整型数组处理算法(九)给定任意一个正整数,求比这个数大且最小的“不重复数”[2014百度笔试题]
- equals和==的区别
- Server的Transfer和Response的Redirect
- Hyperion Essbase入门(六)存储
- (3)选择元素——(17)练习(Exercises)
- 解除开机密码
- 安装essbase得先下载EPM System Installer
- 再探java基础——对面向对象的理解(2)
- 去大连
- Project Euler problem 62
- android 自定义ListView实现元素前移后退的动画特效
- 安装win7和Centos后,默认启动项的修改.
- Mysqlbackup 备份详解(mysql官方备份工具)