如何控制框架的大小?

老土豆T 2003-10-10 09:19:53
有一个框架网页。

上,下,做,中。


我怎么在中间的个frame 里 加个按钮,,使得中间那个frame 占很到一个空间。


谢谢。
...全文
41 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
老土豆T 2003-10-13
  • 打赏
  • 举报
回复
liad() 谢谢,谢谢。

很详细,真心为你回答问题这种热心精神感动:) 200全给你了。
liad 2003-10-10
  • 打赏
  • 举报
回复
FRAMESET

--------------------------------------------------------------------------------

Description

Sets the number and size of vertical and horizontal frames for a compound document. Use the FRAME element within FRAMESET to define the content and properties of the individual frames. You can also nest FRAMESET elements to create frames within a frame.

Syntax
<FRAMESET
BORDER=pixels
BORDERCOLOR=color

CLASS=classname
COLS=col-widths
FRAMEBORDER=NO | YES | 0 | 1
FRAMESPACING=spacing
ID=value
LANG=language
LANGUAGE=JAVASCRIPT | JSCRIPT | VBSCRIPT | VBS
ROWS=row-heights
TITLE=text
>



Parameter Description
BORDER=pixels Defines the space between the frames in pixels, including the 3D border. For nested FRAMESETS, the border can only be defined for the top-level FRAMESET element.
BORDERCOLOR=color Sets border color and must be used with the BORDER attribute, except for frames. For a complete list of colors, look at the Internet Explorer color table.
CLASS=classname Specifies the class of the tag being defined. This is used to associate a sub-classed style sheet with the tag.
COLS=col-widths A comma delimited list of frames to create. Each item in the list contains the initial size of the column. You can specify the column dimensions by percentage (%), pixels, or a relative size (*)
FRAMEBORDER=NO | YES | 0 | 1 Specifies whether or not to display a border for the frame. "YES" or 1 causes a border to be displayed (default). "NO" or 0 displays no border.
FRAMESPACING=spacing Creates additional space between the frames in pixels.
ID=value An SGML identifier used as the target for hypertext links or for naming particular elements in associated style sheets. Valid ID values must begin with a letter. The underbar character, "_", may be used in the ID name. The ID should be unique throughout the scope of the document. If more than one object with the same identifier exists in a document, a collection of those named items is created that can only be referenced by ordinal position.
LANG=language Specifies which language to use in ISO standard language abbreviation form.
LANGUAGE=JAVASCRIPT | JSCRIPT | VBS | VBSCRIPT Specifies the language the current script is written in and invokes the proper scripting engine. The default value is JAVASCRIPT. JAVASCRIPT, JSCRIPT The scripting language is written in JavaScript.
VBS, VBSCRIPT The scripting language is written in VBScript.

ROWS=row-heights A comma delimited list of frames to create. Each item in the list contains the initial size of the row. You can specify the row dimensions by percentage (%), pixels, or a relative size (*).
TITLE=text Used to provide advisory information.

Remarks

A frameset organizes multiple frames on the screen. Only frames, nested FRAMESETelements, and the NOFRAMES tag are valid within a frameset.

This element is a block element.

Both the start and end tags are required.

Example

<FRAMESET COLS="25%, 50%, *">
<FRAME SRC="contents.htm">
<FRAME SRC="info.htm">
<FRAME SCROLLING=NO SRC="graphic.htm">
</FRAMESET>

liad 2003-10-10
  • 打赏
  • 举报
回复
<input type="button" value="change" onClick="parent.fsMain.cols = '30%,*';">
liad 2003-10-10
  • 打赏
  • 举报
回复
<!-- home.htm -->
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html;CHARSET=gb1212">
<TITLE>home.htm</TITLE>
</HEAD>
<FRAMESET rows="70,*" frameborder=NO bordercolor="#B7C5D8;" border="0" framespacing="0">
<frameset rows="50,*" frameborder="NO" border="0" framespacing="0">
<FRAME SRC="1.htm" NAME="top" SCROLLING="No">
<frame name="bottomFrame" scrolling="NO" noresize src="2.htm">
</frameset>
<FRAMESET id="fsMain" cols="20%,*" frameborder=YES bordercolor="#B7C5D8" border="1" framespacing="1">
<FRAME SRC="3.htm" NAME="guide" SCROLLING="No">
<FRAME SRC="main.htm" width="500" NAME="main" SCROLLING="auto">
</FRAMESET>
</FRAMESET>
<noframes>
</noframes>
</HTML>


<!-- main.htm -->
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html;CHARSET=gb1212">
</HEAD>
<body>
<input type="button" value="change" onClick="parent.fsMain.cols = '30,*';">
</body>
</HTML>
阿古 2003-10-10
  • 打赏
  • 举报
回复
在网上你看到这样地页面,你就把它保存下来,如果保存不下来,你用查看源文件的方式,保存下来,查看其源码。就可以知道怎么实现的了!


我这里有,但涉及到多个页面,所以代码不好贴上来了!
liad 2003-10-10
  • 打赏
  • 举报
回复
参考一下CSDN的
http://expert.csdn.net/expert/forum.asp
页面的实现

67,512

社区成员

发帖
与我相关
我的任务
社区描述
J2EE只是Java企业应用。我们需要一个跨J2SE/WEB/EJB的微容器,保护我们的业务核心组件(中间件),以延续它的生命力,而不是依赖J2SE/J2EE版本。
社区管理员
  • Java EE
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧