Menu
previous section: make realistic drops of water
Six, CSS format pop-up menu production export
About the pop-up menu production methods, not our focus on the teaching of this section, the CSS format control where the need for our attention. So this section is through a simple pop-up menu of the production, so that you have to the fireworks 8 new CSS Format menu has a preliminary understanding and impression, to better use it further.
source File Download (37KB, WinZip compression)
1, open fireworks 8, create a new file, the size of the file can be set directly according to the size of the menu. Draw the menu that you want to appear on the page in the edit area.
2, use the toolbox "rectangular hotspot" tool to the menu bar directly into the hot zone, do not convert to button components of the operation.
3, select the "new book recommended" column in the Hot area, select the menu "Modify | pop-up menu | add pop-up menu" command. In the Content Settings dialog box, set the text, links, and their goals for the pop-up menu content, click the Continue button, and go to the Appearance Settings dialog box.
4, in the "Appearance" Settings dialog box, select the format of the cell as "HTML", the font, text size, bounce state, slide over the state of text, cell color to make a setting. When you are finished, click the Continue button to switch to the Advanced Settings dialog box.
5, in this place, the relevant properties of the cell settings, specific content settings here will not be explained in detail, you can refer to the previous version of fireworks related to the tutorial to understand it, master. When all settings are complete, click the Continue button to switch to the Location Settings dialog box.
6, the menu location we choose "To set the menu location to the bottom of the slice" this format, if the Y value is not satisfactory, here can be adjusted, can also be adjusted later, this needs to use the CSS format we are going to focus on the knowledge of the menu. The setup is complete.
7, refer to the above method, add the other menu content complete. Then, click the Export button on the toolbar to export the menu file to the HTML format file. In the Export dialog box that pops up later, click the "Options" button on the right to explore the "HTML Settings dialog", and be sure to select the "Apply CSS to pop-up menus, write CSS to external files" before the check box, you can feel the charm of the CSS formatting menu.
8, the menu file exported to your prepared folder, open the folder, you will find a CSS cascading style sheet document, as shown in the following figure. This is the main character we need to introduce.
9, use the HTML editor or Notepad (use Notepad is actually enough, because the file is not complex) open this CSS file. We can find some HTML code in it, if we don't have any idea about HTML, you can look for some things that are related to the settings of the pop-up menu by using the impression that you just set the menu in fireworks. For example, we can find in the excerpt of a section of the CSS description of the menu object to describe some of the first red line to indicate the "general apperance" that we are in the "menu editor" to make the appearance of the contents of the content, look closely can see that there are " Font-family ", about font settings, and" Font-size ", about font size settings, specific to the font color, background color, font style, and so on content settings, as long as you understand a little English, the following should be nothing serious for you. The 2nd place where the red line is drawn in the following figure is to set the state of the mouse sliding, mainly for the text color and cell background color.
Of course, there are other settings about the appearance of the menu, its cell borders, background color, menu placement, and so on, which are included in the CSS file.
10, when the CSS file is not modified, the pop-up menu style as shown in the following figure.
11. Next, we make a simple adjustment to the content of the CSS file. As shown in the light yellow area shown in the following illustration, we make a simple change to the text color of the pop-up menu, the background color, the color of the text that is outdated for the mouse, and the corresponding background color.
12, after setting, again in the browser preview pop-up menu effect, found that has changed, as shown in the following figure.
[summary]: The CSS Format menu to make, adjust the way to explain to here, presumably everyone has found the mystery is, right, in that generated CSS cascading style sheet file. As long as the CSS file to make simple adjustments, the entire pop-up menu will change the face!