html - 重叠行和部分 html css bootstrap

标签 html css twitter-bootstrap

我遇到了我不想要的重叠元素的问题。我确定没问题,但我不明白为什么。这是一个单页布局,顶部有固定导航。有五个部分:主页、服务、画廊、联系方式、关于。缩放时,服务部分位于关于部分后面。我写这个例子是为了说明我的观点。 CSS、HTML、Bootstrap 3

//css
section {
   position:relative;
   padding:80px 0;
   min-height:100%;

}

<section id ="services">
   <div class = "container">
       <div class = "row">
             <div class="col-md-4">
                       some text and an icon etc...
             </div>
             <div class="col-md-4">
                       some text and an icon etc...
             </div>
             <div class="col-md-4">
                       some text and an icon etc...
             </div>
        </div>
     </div>
  </section>

  <section id = "about">
     <div class = "container">
        <div class = "row">

enter image description here

放大时,它们会堆叠,但仅显示服务部分中的第一个 block ,其他两个 block 隐藏在“关于”部分后面。

最佳答案

使用:

*{
    box-sizing: border-box;
  }

它会解决。

关于html - 重叠行和部分 html css bootstrap,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31229921/

相关文章:

html - 调整网页上的 float 元素

html - Flexbox 将一个元素居中对齐,另一个元素在页面底部对齐

javascript - 在绝对定位的 div 内以 %-width float

html - Thymeleaf 使用 th :if within a th:block

html - 如何将悬停时的下拉菜单定位到所需位置?

javascript - 选择其中一个单选按钮并单击重定向其他页面的提交

html - 位置 :relative set on editable dropdown is displaying over header of web page when scroll down

php - 在 wordpress 自定义主题上显示最后 3 篇博文

javascript - 如何在悬停时滑出内容 - flexbox-layout

html - 如何让连续的 nowrap 跨度包装为单独的元素?