Home > Article > Backend Development > Frameset usage tutorial
Frame is knowledge that must be mastered in web development. For example, background architecture, partial refresh, and page segmentation are all uses of frames, especially background page production. Using frames will give users a very comfortable experience.
Frame knowledge points include (frameset tag, frame tag, iframe tag). They are introduced one by one below.
1. frameset
1. Attribute
①border
Set the border thickness of the frame.
②bordercolor
Set the border color of the frame.
③frameborder
Set whether to display the frame border. The setting values are only 0 and 1; 0 means no border, 1 means to display the border.
④cols
Split the page vertically. There are three numerical representation methods: "30%, 30 (or 30px), *"; the number of values represents the number of divided windows and the values are separated by ",". "30%" means that the frame area occupies 30% of the entire browser page area; "30" means that the horizontal width of the area is 30 pixels; "*" means that the area occupies the remaining page space. For example: cols="25%,200,*" means to divide the page into three parts, the left part accounts for 30% of the page, the middle horizontal width is 200 pixels, and the rest of the page is the right part.
⑤rows
Split the page horizontally. The numerical representation method and meaning are the same as cols.
⑥framespacing
Set the reserved space distance between frames.
2. Use case