首页 > 解决方案 > 当我缩小页面时,部分标签一直重叠

问题描述

我不知道如何让我的部分停止在 HTML/CSS 中重叠。我尝试在 CCS 中使用边距和填充以及浮动,但它们不起作用。

 #projects{
            display: block;
            height: 100vh;
            width: 100vw;
            margin: 20px 20px 20px 20px; 
            padding: 20px 20px 20px 20px;
            }
    
            #education{
                display: block;
                height: 100vh;
                width: 100vw;
                margin: 20px 20px 20px 20px; 
                padding: 20px 20px 20px 20px;
            }
    <body>
         <section id="projects"> 
            <!--there's a lot of irrelevant code in the middle here-->
        </section>
        
           <section id="education"> 
            <!--there's a lot of irrelevant code in the middle here-->
        </section>
    </body>

 

   

缩小页面时的结果:错误

标签: htmlcss

解决方案


推荐阅读