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
This is an interview question, which requires the...
Introduction: This article mainly introduces how ...
Table of contents 1. Current situation 2. Communi...
Since I installed the official version of IE8.0, ...
1. Create insert into [table name] (field1, field...
Copy code The code is as follows: <input type=...
When using CSS pseudo-elements to control element...
0x00 Introduction WordPress is the most popular C...
Table of contents Install Docker on CentOS 8 1. U...
Recently, many students have asked me about web p...
Click here to return to the 123WORDPRESS.COM HTML ...
1. Use the mysql/mysql-server:latest image to qui...
Note 1: Solve the problem of slow connection to M...
1. What is mycat A completely open source large d...
Install MySQL under Windows for your reference. T...