<html>
<body>
<p id="p1">
这是一段文字。
这是一段文字。
这是一段文字。
</p>
<input type="button" value="隐藏文字"
onclick="document.getElementById('p1').style.visibility='hidden'">
<input type="button" value="显示文字"
onclick="document.getElementById('p1').style.visibility='visible'">
</body>
</html>