The following editor will bring you a must-read CSS authoritative guide note. The editor thinks it is quite good, so I will share it with you now and give it as a reference for everyone. Let’s follow the editor and take a look.
Chapter 1 css and documentation
1, element: replacement element (img input), non Replace elements (most spans).
2, link: rel (representing relationship: stylesheet, candidate stylesheet: alternate stylesheet); type (text/css); media: (all (all presentation media, screen, print), title (coordinating candidate Use).
3, @import url(sheet1.css) needs to be used within style, placed before other css rules.
4, backward accessibility: , older browsers will ignore style, and browsers that can understand CSS can read the style sheet normally.
5, CSS comments: /* */.
Chapter 2 Selectors
1. When grouping statements, be sure to use points at the end of each statement. No.
2, p.warming.help {background:red;} only matches p elements whose class contains warming and help. If p contains warming and others, it cannot match
3. , in fact, the browser does not check the uniqueness of the id in the html, but this will make it more difficult to write the dom
4, attribute selector: h1[class] {...}
#. ## h1[class=''] {...} Exact match h1[class~=''] {...} Partial match [class^=''] What does it start with [class$ =''] ends with what [class*=''] contains all elements *[lang|='en']Specific attribute selector, will select the lang attribute equal to en or starting with en- All elements. 5, select child elements: h1>strong; select adjacent sibling elements h1+p (h1 and p have a common parent element, and finally select p). Link pseudo-class: unvisited link: link, visited link: visited (they are both static), equivalent to Dynamic pseudo-class: focus. :focus, mouseover:hover, activation: active. (Dynamic pseudo-class can be used for any element) Recommended pseudo-class order: link-visited-focus-hover-active Select. The first child element (:first-child), which is easy to misunderstand, is all the first child elements (in the following example, the elements as the first child elements include the first p, the first li and strong and em).<p> <p>helooo</p> <ul> <li>111</li> <li><strong>222</strong></li> </ul> <p> <em>333</em> </p> </p>Select according to language (:lang()), such as *:lang(fr){color:red;} This turns all French elements into red. Pseudo element selector: first letter: first-letter, the user agent dynamically forms the pseudo element
Before and after:before :after.
The above is the detailed content of Must-read CSS authoritative guide notes. For more information, please follow other related articles on the PHP Chinese website!

CSS Grid is a powerful tool for creating complex, responsive web layouts. It simplifies design, improves accessibility, and offers more control than older methods.

Article discusses CSS Flexbox, a layout method for efficient alignment and distribution of space in responsive designs. It explains Flexbox usage, compares it with CSS Grid, and details browser support.

The article discusses techniques for creating responsive websites using CSS, including viewport meta tags, flexible grids, fluid media, media queries, and relative units. It also covers using CSS Grid and Flexbox together and recommends CSS framework

The article discusses the CSS box-sizing property, which controls how element dimensions are calculated. It explains values like content-box, border-box, and padding-box, and their impact on layout design and form alignment.

Article discusses creating animations using CSS, key properties, and combining with JavaScript. Main issue is browser compatibility.

Article discusses using CSS for 3D transformations, key properties, browser compatibility, and performance considerations for web projects.(Character count: 159)

The article discusses using CSS gradients (linear, radial, repeating) to enhance website visuals, adding depth, focus, and modern aesthetics.

Article discusses pseudo-elements in CSS, their use in enhancing HTML styling, and differences from pseudo-classes. Provides practical examples.


Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

SublimeText3 Linux new version
SublimeText3 Linux latest version

ZendStudio 13.5.1 Mac
Powerful PHP integrated development environment

DVWA
Damn Vulnerable Web App (DVWA) is a PHP/MySQL web application that is very vulnerable. Its main goals are to be an aid for security professionals to test their skills and tools in a legal environment, to help web developers better understand the process of securing web applications, and to help teachers/students teach/learn in a classroom environment Web application security. The goal of DVWA is to practice some of the most common web vulnerabilities through a simple and straightforward interface, with varying degrees of difficulty. Please note that this software

EditPlus Chinese cracked version
Small size, syntax highlighting, does not support code prompt function

SAP NetWeaver Server Adapter for Eclipse
Integrate Eclipse with SAP NetWeaver application server.
