<!DOCTYPE HTML><html><head><meta http-equiv="Content-Type" Content="text/html; charset=utf-8" /><title>zhaoying制作</title><style type="text/css">body{font-size:12px;}#txt{? ? height:400px;? ? width:600px; border:#333 solid 1px; padding:5px;? ? background:green;}p{ padding:20px; width:600px; border:red solid 1px; line-height:18px; text-indent:4em;? ? color:pink;? ? background:#333}</style><script type="text/javascript">function one(){ var mychar=document.getElementById("see"); mychar.style.display="none";}function two(){ var mychar=document.getElementById("see"); mychar.style.display="block";}function three(){ var mychar="這里沒有彩蛋"; alert(mychar);}</script></head><body>? <h2 id="con">學霸排行榜</H2>? <div id="txt">?? ? ?<h5>制作一個列表 </h5> ?? ? ?<ol > ??? ? ? ? <li >我是<a href=http://www.xianlaiwan.cn>第一名</a>。</li>? ? ? ? <li>我是<a href=http://www.xianlaiwan.cn>第二名</a>。</li>? ? ? ? <li>我是<a href=http://www.xianlaiwan.cn>第三名</a>。</li>? ? ? ? <li>我是<a href=http://www.xianlaiwan.cn>第四名</a>。</li>? ? ? ? </ol>? </div>? <p id="see">如果你也有需要可以向我們投稿,我們十分歡迎的來信,咪咪穎為你點贊。此處是我們的郵箱地址</p>? <form>? ? <input type="button" value="設置隱藏" onclick="one()" /> ?? ? <input type="button" value="設置顯示" onclick="two()" />? ? <input type="button" value="設置驚喜" onclick="three()" /> ?? </form></body></html>
為什么我設置的按鈕沒反應?
小幸運17
2016-06-04 13:39:23