html frame target属性
2014-05-07 18:17
183 查看
首页index.jsp代码如下所示
<html>
<head>
<title>管理系统</title>
</head>
<frameset rows="70,*,20" cols="*" frameborder="no" >
<frame src="<%=context%>/common/top.jsp" name="topFrame" scrolling="NO" noresize>
<frameset cols="135,*" frameborder="no" id="fstMain">
<frame src="<%=context%>/common/menu.jsp" name="leftFrame" scrolling="NO" noresize>
<frame src="<%=context%>/common/welcome.jsp" name="mainFrame" scrolling="NO" noresize>
</frameset>
<frame src="<%=context%>/common/bottom.jsp" name="footFrame" scrolling="NO" noresize>
</frameset>
</html>
当点击menu.jsp的选项时,menu.jsp发生跳转,而我希望的是右边的展示页面welcome.jsp显示内容发生变化,因此需要指定
menu.jsp的target属性为mainframe,代码如下
<!DOCTYPE HTML>
<html>
<head>
<base target="mainFrame">
<title>Bootstrap菜单</title>
这样当我们点击menu.jsp时,welcome.jsp展示的内容会发生变化
<html>
<head>
<title>管理系统</title>
</head>
<frameset rows="70,*,20" cols="*" frameborder="no" >
<frame src="<%=context%>/common/top.jsp" name="topFrame" scrolling="NO" noresize>
<frameset cols="135,*" frameborder="no" id="fstMain">
<frame src="<%=context%>/common/menu.jsp" name="leftFrame" scrolling="NO" noresize>
<frame src="<%=context%>/common/welcome.jsp" name="mainFrame" scrolling="NO" noresize>
</frameset>
<frame src="<%=context%>/common/bottom.jsp" name="footFrame" scrolling="NO" noresize>
</frameset>
</html>
当点击menu.jsp的选项时,menu.jsp发生跳转,而我希望的是右边的展示页面welcome.jsp显示内容发生变化,因此需要指定
menu.jsp的target属性为mainframe,代码如下
<!DOCTYPE HTML>
<html>
<head>
<base target="mainFrame">
<title>Bootstrap菜单</title>
</head>
这样当我们点击menu.jsp时,welcome.jsp展示的内容会发生变化
相关文章推荐
- WPF 在ResourceDictionary文件中使用自定的属性作为trigger 的target
- a标签target属性
- relatedTarget事件属性
- HTML DOM target事件属性
- HTML中的target属性
- form标签中的target属性学习
- HTML <a> 标签的 target 属性
- Android中<uses-sdk>属性和target属性分析
- action重定向到frameset页面指定target属性
- 无法识别的属性“targetFramework”。请注意属性名称区分大写和小写。错误解决的方法
- <a>元素的target属性
- 关于target属性的设置
- form表单target的属性
- WPF Label控件在数据绑定Content属性变化触发TargetUpdated事件简单实现类似TextChanged 事件效果
- href中target属性的用法
- a标签target属性的用法
- form表单提交target属性使用
- 全局设置a标签的target属性
- target事件属性
- 关于target currentTarget 属性的解析(官方收集)