js兄弟節點兼容處理

<div class="container"> <label for="inp1">QQ</label><input type="text" id="inp1"><span>輸入正確的QQ號碼</span> </div> <script type="text/javascript"> // span .nextSibling.style.color="red";  獲取下一個兄弟節點 只有I
相關文章
相關標籤/搜索