CSS Note uses notes by Emerald

xiaoxiao2021-03-06  14

CSS Note uses notes by Emerald

/ - * ------------------------------------------------------------------------------------------------------------------------------------- ----------------------------------------- * - / 1. About ID and Class's marker method,

1. Define the ID using # characters in CSS.

example: ------------------------------------------------ - #Demo {Width: 100%; Background-color: #fffffff; border: Thin Solid # 000000; Padding: 0px 0px 0px 5px; Display: Table;} ------------- -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

2. Define Class Use in CSS. Character.

example: ------------------------------------------------ --- .demo {width: 100%; Background-color: #ffffff; border: Thin Solid # 000000; Padding: 0px 0px 0px 5px; display: table;} ------------- -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

/ - * ------------------------------------------------------------------------------------------------------------------------------------- ----------------------------------------- * - /

II. Define the skills of ID and Class.

The top-level directory uses ID definitions, and there is no lower directory in the directory to use the Class definition. There is an id definition in the directory.

example: ------------------------------------------------ ---

CopyRight © 2020 All Rights Reserved
Processed: 0.048, SQL: 9