1在使用frameset搭建框架时,在子框架中,如果内容过大,则会出现上下或左右的滚动条!
</script>
</head>
<frameset rows="140,*,400" frameborder="0" border="0" framespacing="0">
<frame src="<%=basePath%>xxcj/person/print/first.jsp" name="top_Frame" scrolling="NO" noresize>
<frame src="" name="middleFrame" scrolling="no" noresize>
<frame src="<%=basePath%>xxcj/person/print/three.jsp" name="bottomFrame" scrolling="YES" noresize>
<noframes>
<body>
</body>
</noframes>
</frameset>
</html>
我们要取消滚动条,不仅要在frameset中进行设定,也要在框架页面中进行设定的!
<body bgcolor="#FFFFFF" text="#000000" leftmargin="20" topmargin="0" marginwidth="0" marginheight="0"
scroll="no" align="center">...
</body>
这一点一定要注意呀: 对于target属性,只有超链接和表单存在该属性!