Detailed explanation of CSS inheritance and cascading properties

高洛峰
Release: 2017-03-27 17:12:13
Original
1813 people have browsed it

一、继承特性:

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!

Related labels:
css
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template