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
1. How to use the link: Copy code The code is as f...
Table of contents 1. Three functions of toString ...
This article shares the installation tutorial of ...
Table of contents 1. The reason why the limit is ...
<br />Related articles: 9 practical tips for...
Table of contents 1. What is deconstruction? 2. A...
Install Docker Update the yum package to the late...
Table of contents Concept Introduction Logical ru...
Socat needs to be installed before installing rab...
1. Brief introduction of the event An event is a ...
CSS adds scrolling to div and hides the scroll ba...
From development to deployment, do it yourself Wh...
Nginx load balancing server: IP: 192.168.0.4 (Ngi...
Table of contents Vue.js 1. Register global guard...
1. Start the Docker container Start a new Docker ...