In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/02 Report--
This article mainly introduces what are the learning skills of CSS in Dreamweaver. It is very detailed and has a certain reference value. Friends who are interested must finish it!
The page content (HTML code) is in its own HTML file, while the CSS rules that define the representation of the code are in another file (external stylesheet) or another part (usually part) of the HTML document. With CSS, you can be very flexible and have more control over the appearance of the page, from precise layout positioning to specific fonts and styles.
The CSS formatting rule consists of two parts: selector and declaration. Selectors are terms that identify formatted elements, such as P, H1, class name, or ID, while declarations are used to define style elements. In the following example, H1 is the selector and everything between curly braces ({}) is a declaration:
The code is as follows:
H1 {
Font-size:16 pixels
Font-family:Helvetica
Font-weight:bold
}
The declaration consists of two parts: attributes (such as font-family) and values (such as Helvetica). The above example creates a style for H1 tags: the text of all H1 tags linked to this style will be 16 pixels and use Helvetica fonts and bold.
The term "cascading" refers to the ability to apply multiple styles to the same element or Web page. For example, you can create one CSS rule to apply colors, another rule to apply margins, and then apply both to the same text on a page. The defined styles are "cascaded" into the elements on your Web page, and eventually create the design you want.
The main advantage of CSS is that it is easy to update; whenever an CSS rule is updated, the formatting of all documents that use that defined style are automatically updated to the new style.
The following rule types can be defined in Dreamweaver:
Custom CSS rules (also known as "class styles") allow you to apply style attributes to any text range or block of text. All class styles are with a period (.) The beginning. For example, you can create a class style called .red, set the color property of the rule to red, and then apply the style to part of the paragraph text with a defined style.
HTML tag rules redefine the format of specific tags, such as p or H2. When you create or change the CSS rule for the H2 tag, all text formatted with the H2 tag is updated immediately.
CSS selector rules (advanced styles) redefine the format of a particular combination of elements, or other selector forms allowed by CSS (for example, the selector td H3 is applied whenever an h3 header appears in a table cell). Advanced styles can also redefine the format of tags that contain specific id attributes (for example, styles defined by # myStyle can be applied to all tags that contain attribute / value pairs id= "myStyle").
The above is all the contents of the article "what are the Learning skills of CSS in Dreamweaver". Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.