<!DOCTYPEhtml><htmllang="en"><head><metacharset="UTF-8"/><metahttp-equiv="X-UA-Compatible"content="IE=edge"/><metaname="viewport"content="width=device-width, initial-scale=1.0"/><title>Document</title></head><body><ul><li>高达0</li><li>高达1</li><li>高达2</li><li>高达3</li><li>高达4</li><li>高达5</li></ul><scriptsrc="./vendor/jquery-3.6.0.js"></script><script>// eq: equal等于// lt: less than 小于// gt: greater than 大于$('li:eq(3)').css('border','1px solid red')$('li:gt(3)').css('color','green')$('li:lt(3)').css('background-color','blue')</script></body></html>