HTML/css的内容输出不了,哪儿写错了吗?<!DOCTYPE HTML><html><head> <meta http-equiv="Content-Type" content="text/html;charset=utf-8"> <title></title></head><body> <ul id="con"> <li id="lessonl">javascript <ul> <li id="tcon">打算阿萨德</li> <li>阿萨德</li> <li>阿萨德是</li> <li>阿萨德</li> </ul> </li> <li id="ads">sad</li> <li id="sad">asd</li> <li id="adb">HTML/CSS <ul> <li>文字</li> <li>字段</li> <li>段落</li> <li>文本</li> </ul> </li> </ul> <script type="text/javascript"> var myset=document.getElementById("tcon"); document.write(myset.parentNode.parentNode.parentNode.lastChild.innerHTML); </script><body></html>
添加回答
举报
0/150
提交
取消