为什么段落标签内的标题不继承段落属性?

时间:2021-01-20 08:27:41

标签: html css

他们的一些继承是否很低,我在这里不知道?为什么标题和标题后的文本(在 p 标签内)不受 p 属性的影响?

enter code here<!DOCTYPE html>

               <html>
               <head>  
                <style> 
                         p {color:blue;
                      font-family:Papyrus}
                </style>
               </head>

                <body> 
                       <p>
                           befor the heading 
                           <h3> heading </h3>
                           after the heading 
                       </p>
                </body>
                </html>

here is how the code appears in the browser

0 个答案:

没有答案