日期:2014-05-16  浏览次数:20376 次

像这样的代码要怎么通过PHP来实现?
页面中这个。http://naojin.911cha.com/Ynp5.htm

点击查看答案。就会在这里显示答案。
这个要怎么弄显示。
我看了一下他的网站代码。好像最开始是隐藏的,当点击了超链接。就会通过JS显示出来

JS这快不知道怎么写。请高手帮我写个。

------解决方案--------------------
HTML code
<html>
    <head>
        <title>For test</title>
    </head>
    <body>
    <p id = 'test' style="display:none" >Test</p></br>
    <a href="javascript:void(0)" onclick="javascript:document.getElementById('test').style.display = ''">Display</a>
</body>
</html>