css Full name: cascading style sheet , It is mainly used to define HTML Display style of content in browser , As text size , colour , Bold font, etc .

css Code is usually stored in style In label

css Styles consist of selectors and declarations , Declaration consists of attributes and values

Selector { attribute : value }, for example :p{color:red;};

Selector : Also known as selector , Indicates the elements in the web page to which style rules are applied

statement : In English braces {} In is the statement , Colon between property and value : separate . When there are multiple declarations , Semicolon in English ; separate .

css Placement position

Inline style

Direct label style Attribute

Not recommended

Inline Style Sheet

Written in style In label

External style sheet

Put an independent .css File import to HTML In file , use link The label is written in head In label .

rel="stylesheet" Define type as cascading style sheet

css Inheritance of

css Some styles of are inherited , So what is inheritance ? Inheritance is a rule , It allows styles to be applied to more than one specific html Label element , And it's applied to their offspring .

Non inheritable style :display,margin,border,padding,background,height,

Inheritable styles :letter-spacing,word-spacing,white-space,line-height

©2019-2020 Toolsou All rights reserved,
Python+OpenCV Detailed explanation of face recognition technology SpringBoot practice ( five ):mybatis-plus In BaseMapper,Iservice and ServiceImpl Google says home office affects work efficiency !2021 Return to offline office in 2010 C Language programming to find a student's grade vue Of v-if And v-show The difference between C Language console games , Make bricks These songs , Programmers, don't listen ! What should I do if I suddenly encounter a question I can't answer during the interview ?python To solve the problem of dictionary writing list in c Linguistic 5 Three common sorting methods