- Learning jQuery(Fourth Edition)
- Jonathan Chaffer Karl Swedberg
- 185字
- 2021-08-13 17:18:47
Summary
With the techniques that we have covered in this chapter, we should now be able to locate sets of elements on the page in a variety of ways. In particular, we learned how to style top-level and sub-level items in a nested list by using basic CSS selectors, how to apply different styles to different types of links by using attribute selectors, add rudimentary striping to a table by using either the custom jQuery selectors :odd
and :even
or the advanced CSS selector :nth-child()
, and highlight text within certain table cells by chaining jQuery methods.
So far, we have been using the $(document).ready()
method to add a class to a matched set of elements. In the next chapter, we'll explore ways in which to add a class in response to a variety of user-initiated events.
Further reading
The topic of selectors and traversal methods will be explored in more detail in Chapter 9, Advanced Selectors and Traversing. A complete list of jQuery's selectors and traversal methods is available in Appendix C, Quick Reference, of this book and in the official jQuery documentation at http://api.jquery.com/.
- 微信公眾平臺與小程序開發:從零搭建整套系統
- 圖解Java數據結構與算法(微課視頻版)
- 人人都是網站分析師:從分析師的視角理解網站和解讀數據
- Learning DHTMLX Suite UI
- 全棧自動化測試實戰:基于TestNG、HttpClient、Selenium和Appium
- Mastering Android Game Development
- 匯編語言編程基礎:基于LoongArch
- Practical Game Design with Unity and Playmaker
- Oracle GoldenGate 12c Implementer's Guide
- 30天學通C#項目案例開發
- Flink入門與實戰
- TypeScript全棧開發
- 網絡綜合布線與組網實戰指南
- Hands-On Artificial Intelligence with Unreal Engine
- HTML5 Boilerplate Web Development