var c=document.getElementById("id1");function cecolor(){c.style.color="red";c.style.backgroundColor="#ccc";}function cewh(){c.style.width="200px";c.style.height="100px";}function hide(){c.style.display="none";}function show(){c.style.display="block";}function re(){var ss=confirm("是否取消設(shè)置");if(ss==true)? ? c.removeAttribute("style"); ?}<input type="button" value="改變顏色" onclick="cecolor()" /><input type="button" value="改變寬高" onclick="cewh()" /><input type="button" value="隱藏內(nèi)容" onclick="hide()" /><input type="button" value="顯示內(nèi)容" onclick="show()" /><input type="button" value="取消設(shè)置" onclick="re()" />
求解答,為何這樣設(shè)置點(diǎn)按鈕完全沒反應(yīng)。
我們
2015-10-19 10:56:19