HBCMS更多的中文手册参考:

COLS Attribute | cols参数属性

DHTML文档教程

Sets or retrieves the frame widths of the object.

dhtml语法

HTML<FRAMESET COLS = sWidth... >
ScriptingFRAMESET.cols [ = sWidth ]

DHTML可能的值

sWidthInteger that specifies or receives one of the following values.
widthInteger that specifies the frame width, in pixels.
percentageInteger, followed by a percent sign (%). The value is a percentage of total available width.
width*Integer that specifies the frame width as a relative value. After allocating pixel or percentage values, the remaining space is divided among all relative-sized frames.

The property is read/write. The property has no default value.

Remarks

The number of comma-separated items is equal to the number of frames contained within the frameset, while the value of each item determines the frame width.

Examples

This example defines a two-column frame, with the first occupying 40 percent of the available width and the second occupying the remaining 60 percent.

<FRAMESET COLS="40%, 60%">

This example defines a four-column frame. The first is 50 pixels wide, and the fourth is 80 pixels wide. The second occupies two-thirds of the remaining width, while the third occupies the final third of the remaining width.

<FRAMESET COLS="50, 2*, *, 80">

是否符合公共标准

This property is defined in HTML 4.0 Non-Microsoft link and is defined in World Wide Web Consortium (W3C) Document Object Model (DOM) Level 1 Non-Microsoft link.

Applies To

FRAMESET

更多语法参考

rows