1. Understanding the meaning of web standards-Why adopt web standards ***** Separate content from style 1. Web standards are a series of standards, that is, a series of technical standards that are used in combination [1], structured content xhtml 2. A small tool for web development - Firebug in Firefox 3. CSS definition skills: For example, the h1 tag has its own attribute value, which automatically displays in bold and with a larger font size. Divided into Chinese and English fonts. Set the order of the fonts, with English fonts in front and Chinese fonts in the back. 4. The way CSS is applied to web pages is equivalent to how people put on clothes. *****Note: The import style is actually similar to the embedded style, both of which add styles to the web page. 2. Characteristics of CSS CSS is called Cascading Style Sheets. 1. Inheritance: Child elements will inherit certain styles of parent elements. 2. Overlay: If a child element defines the same style as the parent element, the style of the parent element will be overwritten. 3. CSS style priority: Who should you listen to when styles conflict? CSS priority: The smaller the scope of the proximity principle, the higher the priority. Grandpa -- Red Daddy -- Green Child -- Blue Selection priority Inline > id > class > tag selector In special cases, we can increase the permissions of a certain attribute 4. Some commonly used text, CSS styles for text control *****When we apply CSS styles, we must pay attention to its default values. Because different browsers have different CSS default values (different browsers support different attributes, and we also need to ensure the compatibility of our web pages, try to use the attributes that are passed, and don't use attributes that have compatibility differences.) 5. CSS controls a certain state of elements-pseudo-class Pseudo-class syntax: The above Html/Css (the first must-read guide for beginners) is all the content that the editor shares with you. I hope it can give you a reference. I also hope that you will support 123WORDPRESS.COM. Original URL: http://www.cnblogs.com/xie-zhan/archive/2016/07/01/5631868.html |
>>: Several ways to set the expiration time of localStorage
Table of contents 1.watch monitors changes in gen...
The replace statement is generally similar to ins...
This article shares with you a book flipping effe...
Today we discussed the issue of what the margin v...
1. Transactions have ACID characteristics Atomici...
After installing VMware and creating a new virtua...
Upgrade process: Original system: CentOS7.3 [root...
Table of contents background LIMIT Optimization O...
Previous This is a classic old question. Since a ...
This article shares the specific code for importi...
This article example shares the specific code of ...
Previously, I introduced the use of the charAt() ...
ant-design-vue customizes the use of Ali iconfont...
MySQL provides two different versions for differe...
Table of contents summary Overall process front e...