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
vue+el-upload multiple files dynamic upload, for ...
Uses of new The function of new is to create an i...
Preface Using Docker and VS Code can optimize the...
1. Check whether port 80 is occupied. Generally, ...
Preface Tomcat is a widely used Java web containe...
First look at the example code: #/bin/bash cal da...
Regarding the high availability solutions for Ora...
<br />I just saw the newly revamped ChinaUI....
Table of contents 1. Docker installation on Mac 2...
CSS 3 animation example - dynamic effect of Tab b...
Table of contents Question: Case (1) fork before ...
Table of contents 1. Introduction 2. Why do we ne...
Big pit, don't easily delete the version of P...
nvm nvm is responsible for managing multiple vers...
Achieve results Implementation Code html <div ...