Without further ado, let me show you the code first Copy the code The code is as follows: < ;html xmlns="http://www.w3.org/1999/xhtml"> Yiyi Garden <br>var pic = document.getElementById('picChange'); <br>var picList = pic.getElementsByTagName("li"); <br>alert(picList[0].firstChild); <br>