Adjacent siblings, you can understand at a glance

    <!DOCTYPE HTML>
    <html>
        <head>
            <style type="text/css">
                h1 + p {
    
    margin-top:50px;}
            </style>
        </head>
        <body>
            <h1>This is a heading.</h1>
            <p>This is paragraph.</p>
        </body>
    </html>

Guess you like

Origin blog.csdn.net/tianxiefenxiang/article/details/106716463