# 내용 필터 선택자

### 내용 필터 선택자

![](https://1686368321-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MJPDmBW1ppF03ulXNry%2F-MJU_OpIEwKS_7_rt4D9%2F-MJU__msZw_izw1Ut6Ha%2Fimage.png?alt=media\&token=cb373165-a29e-4ecd-93a2-09849987945c)

```javascript
$("li:contains('list4')").css({backgroundColor:"#f44336", border:"1px dashed #303f9f", color: "#fff"});
$("li a:empty").css({backgroundColor:"#f44336", border:"1px dashed #303f9f", color: "#fff"});
$("li:parent").css({backgroundColor:"#f44336", border:"1px dashed #303f9f", color: "#fff"});
$("li:has(li)").css({backgroundColor:"#f44336", border:"1px dashed #303f9f", color: "#fff"});
```
