In DreamweaverWebsite productionIn, you can set the properties of a frame or frameset visually.When setting these properties, you should first confirm that a frame or frameset is selected.
1. Set frame properties
The frame properties can be set through the Properties panel.For example, after selecting a frame, you can view various attributes that can be set for it in the Attribute panel, as shown in Figure 5-31.
The details of the frame attributes in the Attribute panel are shown below.
Frame name
This attribute is used to set the ID attribute of the frame, that is, the title of the frame.After you set a name for the framework, you can reference the framework through hyperlinks or JavaScript.The naming convention of frame names is the same as that of ID attributes. English letters must be used as the beginning, numbers and underscores can be used, and special symbols are not allowed.In addition, reserved words of JavaScript are not allowed when setting IDs.
source file
This property is used to specify the URL address of the source file opened in the current frame.It can be an absolute path or a relative path.When setting this attribute, you can directly enter the path and file name in the text box, or click the folder icon, browse and select the file, and insert it into the frameset.
roll
This attribute is used to set the scroll bar display mode of the current frame.Click the drop-down list of this attribute to set its four attribute values, as shown in Table 5-4.
Cannot resize
Select this check box to prevent users from dragging the frame border to adjust the size of the current frame when browsing the web page.
frame
This property is used to determine whether the frame's border is displayed in the Web page.Click the drop-down list of this attribute to set its three attribute values, as shown in Table 5-5.
Border Color
This attribute is used to set the color of all borders adjacent to the current frame.The selection of this option will override the border color setting of the frameset.
Boundary width and height
These two properties are used to set the size of the frame.The attribute value is an integer number in pixels, and no unit is required.
2. Set frameset properties
Use the frameset properties panel to set the size of borders and frames.The priority of frameset attributes in a web page is lower than that of frameset attributes. Therefore, if certain attributes are set for subframes in a web page, it will not work for the frameset to set these attributes again.
Select the entire frame set in the Frame panel to set the properties of the frame set, as shown in Figure 5-32.
On the Attribute panel, the following parameters are used to define framesets.
frame
This property is used to determine whether the frame set's border is displayed in the Web page.If this property has been set in the subframe set or some subframes of the web page, this property of the frameset will only work for the subframe set or subframes that have not set this property.Its attribute value is the same as the frame's border attribute.
Border width
This attribute is used to set the width of all frame borders of the entire frame set.If this property has been set in the subframe set or some subframes of the web page, this property of the frameset will only work for the subframe set or subframes that have not set this property.Its attribute value is the same as the frame's border width attribute.
Border Color
This attribute is used to set the color of all frame borders of the entire frame set.If this property has been set in the subframe set or some subframes of the web page, this property of the frameset will only work for the subframe set or subframes that have not set this property.Its attribute value is the same as the frame's border color attribute.
Row/Column
This attribute is used to set the row height (when the frameset is an upper and lower frame) or column width (when the frameset is a left and right frame) of the frameset.The units can be pixel, percentage and relative.
In the frameset attribute panel, there is a Row/Row Selection Range area. Click Row Selection Label to select a row, or click Column Selection Label to select a column.Then, enter a number in the [Value] text box and select the unit to set the size of the selected row or column, as shown in Figure 5-33.