English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
Die cols-Eigenschaft legt die Größe und die Anzahl der Spalten im <frameset> fest, die Breite eines Rahmens wird durch die im Komma-getrennten Listenelement der cols-Eigenschaft festgelegt.
Ein dreispaltiger Rahmen:
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>HTML <frameset> cols-Eigenschaft verwenden-Grund教程(oldtoolbag.com)</title> </head> <body> <frameset cols="25,%*,25%"> <frame src="frame_a.htm"> <frame src="frame_b.htm"> <frame src="frame_c.htm"> </frameset> </form> </body> </html>Test it out ‹/›
IEFirefoxOperaChromeSafari
All major browsers support the cols attribute.
HTML5 The <frameset> tag is not supported.
The cols attribute specifies the size and number of columns in the <frameset>.
The width of each frame is specified in the cols attribute of the comma-separated list.
Note:Once the number of values for the cols attribute is specified, it defines the number of columns in the <frameset>.
<frameset cols="pixels|%|*">
Value | Description |
---|---|
pixels | Specify the column size in pixels (for example "100px" or just "100")。 |
% | Specify the column size as a percentage of the available space (for example "50%")。 |
* | The remaining available space will be allocated to the column. |