Home  >  Article  >  Web Front-end  >  Detailed explanation of CSS inheritance and cascading properties

Detailed explanation of CSS inheritance and cascading properties

高洛峰
高洛峰Original
2017-03-27 17:12:131801browse

一、继承特性:

1、学过Java和C++的都注意到,属于父亲的protected字段或方法肯定会被孩子所继承,而CSS也具备此特性,看下面的例子:

     
     
           


                 
                  CSS

The above is the detailed content of Detailed explanation of CSS inheritance and cascading properties. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn