一个网页default.html,包含两个iframe,leftmenu和main。
要求点击leftmenu中的链接,使得main中的页面发生变化。
在leftmenu中的所有a标签里加上target属性,并在iframe里,在main里加上name属性就可以了;
如:<a href='#' target='main'>这是leftmenu中的;
<iframe src='main.html' name='main'/>这是default.html中的设置
如:<a href='#' target='main'>这是leftmenu中的;
<iframe src='main.html' name='main'/>这是default.html中的设置
温馨提示:答案为网友推荐,仅供参考