代码编辑器:
x
1
<h2> h2 元素</h2>
2
<h3> h3 元素</h3>
3
<script>
4
document.querySelector("h2, h3").style.backgroundColor = "red";
5
</script>
6
<h2> h2 元素</h2>
<h3> h3 元素</h3>
<script>
document.querySelector("h2, h3").style.backgroundColor = "red";
</script>