摘要: 1.以现有条件判断: var a=document.getElementById("btn-icon"); document.onload=function(){ if(a.style.top=="50px"){ alert("要改变的样式") }else{ alert("原本的样式") } }; 2.给一个整数变量,根据数字的奇偶... 阅读全文
posted @ 2015-11-09 15:22 Vonson 阅读(548) 评论(0) 推荐(0) 编辑