Control VC ++. HTML element properties in the web dialog box in NET

zhaozj2021-02-17  57

Control VC . The HTML element attribute of the web dialog in NET 8/23/2001 10: 14: 11 · · adding ·· Yesky 1 2 Next VC . NET A new feature is based on dynamic HTML web dialog box It makes the desktop program interface and function make it easier to implement. Here will discuss the CSS attribute control of the HTML element in the web dialog. 1. CSS attribute CSS set in the HTML editor CSS earliest in 1996, is called: Cascading Stylesheets. Because it is in font, style, style, the highlights, etc., it quickly spreads in web pages. It can accurately control the page text effect, the most important thing is that many browsers and platforms support it, and the coding is short, and the page is fast. In the HTML editor of VC . NET, it can be convenient to set a CSS style for an HTML element. The specific operation is as follows: (1) Select an HTML element to open its properties window, find its Style item, such as Figure 1 shows. (2) Click the Browse (...) button on the right, pop up the Style Builder dialog box of Figure 2, you can make the font (Font), Background, the text, position, layout (Layout), Border (EDGES), List (LISTS), and other appearance properties for settings. The biggest advantage of using the Style Builder dialog is that you can adjust the CSS style of the HTML element without knowing the syntax structure of CSS. Limited to the space, this is only elaborated on the most common font, background and text properties. 1. The font page of the Font Properties Style Builder dialog provides the following font properties: (1) Fong Name word name You can use the Family and System Font options, select the Family item to click on the Browse (... Buttons to add a new font, select SYSTEM FONT, then select one of them in the combo box on the right, the specific meanings are as follows: Window Caption: Text Font ToolWindow Caption: Use Tools Window Title text font Dialog Text: Use the text fonts in the dialog: text font using the tool window Title Menu text: Use the font of the menu text Tooltip text: Use the prompt text (2) Font "Font Attributes" font Features include color (color) and small uppercase letters (SMALL CAPS), where color features are most rich, not only can choose Aqua (light green), Black, Blue, not only can be selected by combination boxes, but Black (blue) , Fuchsia, Gray (Gray), Green (Green), Lime (orange), Maroon, Navy (Sea Blue), Olive (olive), Purple (purple), Red (red), Silver (Silver Gray), Teal (Tea Color), White (White) and Yellow (Yellow), and you can add a new color with the Browse (...) button on the right, Figure 3 is The color dialog, which has a web palette (named colors, system colors, and custom color (Custom Color). (3) Size (size) Set the font size of the HTML element, the default value is the Medium value of ABSOLUTE. It has three options: Specific: Specify the font size directly, which depends on the unit and the corresponding value.

转载请注明原文地址:https://www.9cbs.com/read-30902.html

New Post(0)