Full analysis of web page elements

Full analysis of web page elements
Relative Length Units
em
Description: Relative length unit. Relative to the font size of the text within the current object.
If the font size of the text in the current line is not set manually, it is relative to the browser's default font size.
Example:
div { font-size : 1.2em; }
ex
Description: Relative length unit. Relative to the height of the "x" character. This height is usually half the font size.
If the font size of the inline text is not set manually, it is relative to the browser's default font size.
Example:
div { font-size : 1.2ex; }
px
Description: Relative length unit. Pixel.
Pixels are relative to the monitor screen resolution. For example, the resolution used by WONDOWS users is generally 96 pixels per inch. The resolution used by MAC users is generally 72 pixels per inch.
Example:
div { font-size : 12px; }

--------------------------------------------------------------------------------
Absolute Length Units
pt
illustrate:
Absolute length unit. Point.
1in = 2.54cm = 25.4mm = 72pt = 6pc
Example:
div { font-size : 9pt; }
pc
illustrate:
Absolute length unit. Pica. It is equivalent to the size of my country's new No. 4 lead type.
1in = 2.54cm = 25.4mm = 72pt = 6pc
Example:
div { font-size : 0.75pc; }
in
illustrate:
Absolute length unit. Inch.
1in = 2.54cm = 25.4mm = 72pt = 6pc
Example:
div { font-size : 0.13in; }
cm
illustrate:
Absolute length unit. Centimeter (Centimeter).
1in = 2.54cm = 25.4mm = 72pt = 6pc
Example:
div { font-size : 0.33cm; }
mm
illustrate:
Absolute length unit. Millimeter.
1in = 2.54cm = 25.4mm = 72pt = 6pc
Example:
div { font-size : 3.3mm; }

--------------------------------------------------------------------------------
Color Units Reference
#RRGGBB
parameter:
RR:

<<:  Example code for implementing background transparency and opaque text with CSS3

>>:  Detailed explanation of the persistence implementation principle of transactions in MySQL

Recommend

A brief introduction to the simple use of CentOS7 firewall and open ports

Overview (official has more detailed description)...

The most complete 50 Mysql database query exercises

This database query statement is one of 50 databa...

VUE Getting Started Learning Event Handling

Table of contents 1. Function Binding 2. With par...

WeChat applet custom menu navigation to achieve staircase effect

Design Intentions When developing a page, you oft...

MYSQL transaction tutorial Yii2.0 merchant withdrawal function

Preface I am a PHP programmer who started out as ...

Solution to the problem of eight hours difference in MySQL insertion time

Solve the problem of eight hours time difference ...

Vue shuttle box realizes up and down movement

This article example shares the specific code for...

JavaScript timer to achieve seamless scrolling of pictures

This article shares the specific code of JavaScri...

In IIS 7.5, HTML supports the include function like SHTML (add module mapping)

When I first started, I found a lot of errors. In...

Solution to "Specialized key was too long" in MySQL

Table of contents Solution 1 Solution 2 When crea...

Detailed steps for using AES.js in Vue

Use of AES encryption Data transmission encryptio...

mysql is not an internal command error solution

The error "mysql is not an internal command&...

Several reasons for not compressing HTML

The reason is simple: In HTML documents, multiple ...

Summary of ways to implement single sign-on in Vue

The project has been suspended recently, and the ...

Detailed explanation of MySQL custom functions and stored procedures

Preface This article mainly introduces the releva...