怎么在一个java主页面下实现子页面的切换啊???

来源:百度知道 编辑:UC知道 时间:2024/06/17 03:32:50
我要做一个系统,需要做一个主页面,页面顶上有几个按钮,怎么实现当按下一个按钮时在主页面的下面出现相应的子页面且他俩在一个容器里!求各位高手指点啊!!!谢谢啦!

使用iframe
给你写一个简单的模板:

<html>
<head>
<title>..</title>
......略
</head>

<body>
<div>
<a herf='www.sina.com.cn' target='test'>sina</a>
<a herf='www.sohu.com.cn' target='test'>sohu</a>
</div>
<div>
<iframe id = 'test' name = 'test'></iframe>
</div>
</body>
</html>