为什么不能隐藏呢?
<p id="addedtext">because they are too near</p>
<input type="button" onclick="showtext()" value="showtext" style="float: none;" />
<input type="button" onclick="hidetext()" value="hidetext" style="float:none;"/>
<script type="text/javascript">
var mynear=document.getElementById("addedtext");
function showtext(){
mynear.style.display=block;
}
function hidetext(){
mynear.style.display=none;
}
为什么隐藏没有反应呢?