# 기본 필터 선택자

### 기본 필터 선택자&#x20;

![](https://1686368321-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MJPDmBW1ppF03ulXNry%2F-MJUQtSPCd6e0pHAPRLM%2F-MJUQufcFooR1ydYghy3%2Fimage.png?alt=media\&token=ec7b6037-f9d5-4c87-bb8d-95520e5d2ec4)

```javascript
$("li:eq(4)").css({backgroundColor:"#f44336", border:"1px dashed #303f9f", color: "#fff"}); 
$("li:gt(4)").css({backgroundColor:"#f44336", border:"1px dashed #303f9f", color: "#fff"});
$("li:lt(4)").css({backgroundColor:"#f44336", border:"1px dashed #303f9f", color: "#fff"});
$(":header").css({backgroundColor:"#f44336", border:"1px dashed #303f9f", color: "#fff"});
$("li:first").css({backgroundColor:"#f44336", border:"1px dashed #303f9f", color: "#fff"});
$("li:last").css({backgroundColor:"#f44336", border:"1px dashed #303f9f", color: "#fff"});
$("li:odd").css({backgroundColor:"#f44336", border:"1px dashed #303f9f", color: "#fff"}); 
$("li:even").css({backgroundColor:"#f44336", border:"1px dashed #303f9f", color: "#fff"}); 
```
