Inheritance of three major characteristics of 24-CSS
I'm a paragraph.
I'm a hyperlink, I'm a big headline.
<!DOCTYPE HTML><HTMLLang= "en"><Head> <MetaCharSet= "UTF-8"> <title>Inheritance of three major characteristics of 24-CSS</title> <style>Div{Color:Red;text-decoration:None;font-size:30px; } </style></Head><Body><!--1. What is inheritance? Function: Set some attributes on the parent element, which we call inheritance Note: 1. Not all attributes can be inherited, only color/font-/text-/ A property that begins with line-can inherit 2. In the inheritance of CSS, not only the son can inherit, as long as the descendants can inherit 3. The particularity of inheritance in the 3.1A label text color and underscore is not inherited the 3.2H label text size is not inherited by the application scenario: Generally used to set some common information on the Web page, such as the text color of the Web page, font, text size and other content body{} -<Div> <P>I'm a paragraph.</P></Div><Div> <ul> <Li> <P>I'm a paragraph.</P> </Li> </ul></Div><Div> <ahref="#">I'm a hyperlink.</a></Div><Div> <H1>I'm a big headline.</H1></Div></Body></HTML>
Inheritance of three major characteristics of H5 24-css