浏览器故障或什么

Browser failure or what?

本文关键字:什么 故障 浏览器      更新时间:2023-09-26

我创建了以下代码

<script>
    function show()
    {
        document.getElementById("changetable").style.display = "initial";
    }
</script>
<script>
    function hide()
    {
        document.getElementById("changetable").style.display = "none";
    }
</script>
<select>
    <option onclick="hide()">1</option>
    <option onclick="hide()">2</option>
    <option onclick="hide()">3</option>
</select>
<input name="convert" id="submitbutton" type="button" value="Convert" size="10" onclick="return show();"/>
<div id="changetable" style="display:none" align="center">
    <table width="526" height="140" border="0" cellpadding="1" cellspacing="3">
        <tr>
            <th>
                name:
            </th>
            <td>
                <input name="fname" type="text" />
            </td>
        </tr>
    </table>
</div>

一切都很好,除了当我使用谷歌铬显示它时。表是显示的,但在我点击选项值后它不能隐藏。Mozilla和其他公司完全运作良好。知道吗?

似乎没有定义show()函数。