querySelector方法
时间: 2023-08-25 08:11:33 浏览: 94
引用来设置匹配的第一个p元素的背景颜色为红色。<em>1</em><em>2</em><em>3</em>
#### 引用[.reference_title]
- *1* [querySelector( ) 方法](https://blog.csdn.net/m0_57835615/article/details/117384251)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}} ] [.reference_item]
- *2* *3* [querySelector() 方法](https://blog.csdn.net/weixin_34396902/article/details/93353359)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}} ] [.reference_item]
[ .reference_list ]
阅读全文