需要帮助使网站响应#2 [英] need help making website responsive #2

查看:25
本文介绍了需要帮助使网站响应#2的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家!我目前正在为我的一个朋友做一些免费工作,为我的投资组合做出贡献并让我继续学习.

一切都很顺利,看起来也很棒,但不幸的是,我在尝试使某些内容具有响应性时遇到了很多麻烦.我正在使用 Bootstrap 网格框架.

好的,这是我的 CSS

.footertext {字体系列:'氧气',无衬线;字体粗细:100;字体大小:15px;白颜色;左边距:30px;不透明度:0.5;文本对齐:右;}.lastbox {字体系列:'氧气',无衬线;字体粗细:100;字体大小:19px;文本对齐:居中;}.页脚{背景尺寸:封面;高度:105px;box-shadow: 插入 0 0 0 1000px rgba(0,0,0,.5);边距顶部:100px;填充顶部:20px;填充底部:20px;}.boxmain {背景颜色:白色;宽度:100%;高度:25em;背景尺寸:封面;最大宽度:100%;}.videocenter {文本对齐:居中;}.视频 {填充顶部:1.875em;文本对齐:居中;}.underh {字体系列:'氧气',无衬线;字体粗细:100;字体大小:22px;填充顶部:2.0625em;左边距:1.25em;最大宽度:100%;}.heading {字体系列:'Oswald',无衬线;字体粗细:100;字体大小:49px;}.box1 {填充顶部:25px;}身体 {字体系列:'Oswald',无衬线;背景: url(background.jpg) 无重复中心中心固定;背景尺寸:封面;box-shadow: 插入 0 0 0 1000px rgba(0,0,0,.3);最大宽度:100%;}.标识 {显示:块;宽度:75%;高度:96%;边距:0 自动;最大宽度:100%;}/*-------------------------------------------------------*//* 导航栏/*-------------------------------------------------------*/.导航栏{底边距:0;边界:无;最小高度:60px;-webkit-backface-visibility:隐藏;背面可见性:隐藏;-webkit-transition:所有 0.3 秒的缓入缓出;-moz-transition:所有 0.3 秒的缓入缓出;-ms-transition:所有 0.3 秒的缓入缓出;-o-transition:所有 0.3 秒的缓入缓出;过渡:所有 0.3 秒的缓入缓出;z-索引:1200;}.navbar-nav {边距:0;浮动:无;显示:内联块;}.navbar-nav >立>一种 {文本转换:大写;填充:0 24px;行高:90px;颜色:#fff;字体大小:19px;字体粗细:300;字母间距:0.02em;-webkit-transition:所有 0.3 秒的缓入缓出;-moz-transition:所有 0.3 秒的缓入缓出;-ms-transition:所有 0.3 秒的缓入缓出;-o-transition:所有 0.3 秒的缓入缓出;过渡:所有 0.3 秒的缓入缓出;}.navigation-overlay {背景颜色:rgba(17, 17, 17, 0.5);宽度:100%;行高:0;-webkit-transition:所有 0.3 秒的缓入缓出;-moz-transition:所有 0.3 秒的缓入缓出;-ms-transition:所有 0.3 秒的缓入缓出;-o-transition:所有 0.3 秒的缓入缓出;过渡:所有 0.3 秒的缓入缓出;}.navigation-overlay.sticky {背景:#000;背景:RGBA(0,0,0,0.8);可见性:可见;不透明度:0.75;}.navigation-overlay.sticky .navbar-nav >立>一种,.navigation-overlay.sticky .menu-socials li >一种 {行高:60px;}.navbar-header {宽度:20%;padding-right: 15px;}.nav-wrap {宽度:60%;}.menu-社交{宽度:20%;浮动:对;填充:0 15px;}.logo 容器 {填充:0 15px;向左飘浮;}.logo 包装 {显示:表;宽度:100%;}.logo 包装 >一种 {显示:表格单元格;垂直对齐:中间;高度:90px;-webkit-transition:所有 0.3 秒的缓入缓出;-moz-transition:所有 0.3 秒的缓入缓出;-ms-transition:所有 0.3 秒的缓入缓出;-o-transition:所有 0.3 秒的缓入缓出;过渡:所有 0.3 秒的缓入缓出;}.logo-wrap.shrink >一种 {高度:60px;}.logo 包装 img {-webkit-transition:所有 0.3 秒的缓入缓出;-moz-transition:所有 0.3 秒的缓入缓出;-ms-transition:所有 0.3 秒的缓入缓出;-o-transition:所有 0.3 秒的缓入缓出;过渡:所有 0.3 秒的缓入缓出;高度:66px;}.logo-wrap.shrink img {高度:48px;}.navbar-collapse.in {溢出-x:隐藏;}.navbar-nav >立>答:悬停,.navbar-nav >.active >一种,.navbar-nav >.active >一:专注,.navbar-nav >.active >答:悬停,.menu-socials li >一个:悬停{不透明度:1;}.navbar-collapse {填充:0;边框顶部:无;}.nav .open >一种,.nav .open >一:专注,.nav .open >答:悬停,.nav >立>一:专注,.nav >立>一个:悬停{背景色:透明;文字装饰:无;边框颜色:#f2f2f2;}@media(最大宽度:991px){.navigation-overlay,.navigation-overlay.sticky {背景颜色:rgba(17, 17, 17, 0.9);}.nav-wrap {宽度:100%;填充:0;最小高度:0;}.nav-type-1 .container-fluid {填充:0 15px;}.navbar-header {宽度:100%;填充右:0;}.logo 包装 img {高度:48px;}.logo 包装 >一种 {高度:60px;}.navbar-nav {宽度:100%;填充:40px 0;}.navigation-overlay.sticky .navbar-nav >立>一种,.navigation-overlay .navbar-nav >立>一种 {填充:10px 0;行高:30px;}}

<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/js/bootstrap.min.js"></script><link href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet"/><div class="navigation-overlay sticky"><div class="container-fluid"><div class="row"><div class="navbar-header"><button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navbar-collapse"><span class="sr-only">切换导航</span><span class="icon-bar"></span><span class="icon-bar"></span><span class="icon-bar"></span><!-- 标志 --><div class="logo-container"><div class="logo-wrap local-scroll shrink"><a href="#home"></a>

<div class="col-md-8 col-xs-12 nav-wrap"><div class="collapse navbar-collapse text-center" id="navbar-collapse"><ul class="nav navbar-nav local-scroll text-center">

  • <a href="#home">首页</a>
  • <li><a href="#services">团队</a><li><a href="#portfolio">作品</a><li><a href="#about-us">活动</a><li><a href="#contact">联系方式</a>

    <!-- 结束列 -->

    <!-- 结束行-->

    <!-- 结束容器-->

    <!-- 结束导航--><img class="logo img-fluid" alt="风暴之眼"src="logo.png"><div class="boxmain"><div class="container-fluid"><div class="row"><div class="col-xs-6"><div class="视频">

    <iframe src="https://www.facebook.com/plugins/video.php?href=https%3A%2F%2Fwww.facebook.com%2Feyeofthestormpro%2Fvideos%2F638067739703491%2F&show_text=0&width=560" width="560" height="315" style="border:none;overflow:hidden" scrolling="no" frameborder="0" allowTransparency="true" allowFullScreen="true"></iframe>

    <div class="col-xs-6"><p class="underh">Eye of the Storm Productions 是一家致力于涉足电子音乐领域的娱乐企业.我们为地下电子音乐界提供广泛的服务,并为我们所做的工作感到自豪.我们提供我们自己精选的最有抱负的年轻 DJ/制作人和摄影师/电影摄影师,以及专业的舞台管理解决方案.我们还与 Fulcrum Designs and Staging 合作,为您带来最好的舞台设计和施工.包括定制遮阳帆安装和 VJ 服务.</p>

    <div class="container-fluid"><div class="footer"><div class="row"><div class="col-xs-6"><iframe src="https://www.facebook.com/plugins/like.php?href=https%3A%2F%2Fwww.facebook.com%2Feyeofthestormpro&width=450&layout=standard&action=like&size=small&show_faces=true&share=true&height=80&appId" width="450" height="80" style="border:none;overflow:hidden" scrolling="no" frameborder="0" allowTransparency="真"></iframe>

    <div class="col-xs-6"><p class="footertext">版权所有 © 2017 Eye Of The Storm Productions.保留所有权利.

    <p class="footertext">由 Charlie Fisher 开发的网站</p>

    我更专注于尝试使中间的白色背景和内容具有响应性,谢谢!

    解决方案

    试试这个.它将提高页面响应能力:

    body{宽度:100%;保证金:0;填充:0;最大宽度:100%;}.container-fluid,.row{宽度:100%;保证金:0;填充:0;最大宽度:100%;}.footertext {字体系列:'氧气',无衬线;字体粗细:100;字体大小:15px;白颜色;左边距:30px;不透明度:0.5;文本对齐:右;}.lastbox {字体系列:'氧气',无衬线;字体粗细:100;字体大小:19px;文本对齐:居中;}.页脚{背景尺寸:封面;保证金:0;填充:0;box-shadow: 插入 0 0 0 1000px rgba(0,0,0,.5);填充:20px 0 10px 0;}.boxmain {背景颜色:白色;宽度:100%;最小高度:32.7em;背景尺寸:封面;最大宽度:100%;}.videocenter {文本对齐:居中;}.视频 {填充顶部:1.875em;文本对齐:居中;}.underh {字体系列:'氧气',无衬线;字体粗细:100;字体大小:22px;填充顶部:2.0625em;左边距:1.25em;最大宽度:100%;}.heading {字体系列:'Oswald',无衬线;字体粗细:100;字体大小:49px;}.box1 {填充顶部:25px;}身体 {字体系列:'Oswald',无衬线;背景: url(background.jpg) 无重复中心中心固定;背景尺寸:封面;box-shadow: 插入 0 0 0 1000px rgba(0,0,0,.3);最大宽度:100%;}.标识 {显示:块;宽度:75%;高度:96%;边距:0 自动;最大宽度:100%;}/*-------------------------------------------------------*//* 导航栏/*-------------------------------------------------------*/.导航栏{底边距:0;边界:无;最小高度:60px;-webkit-backface-visibility:隐藏;背面可见性:隐藏;-webkit-transition:所有 0.3 秒的缓入缓出;-moz-transition:所有 0.3 秒的缓入缓出;-ms-transition:所有 0.3 秒的缓入缓出;-o-transition:所有 0.3 秒的缓入缓出;过渡:所有 0.3 秒的缓入缓出;z-索引:1200;}.navbar-nav {边距:0;浮动:无;显示:内联块;}.navbar-nav >立>一种 {文本转换:大写;填充:0 24px;行高:90px;颜色:#fff;字体大小:19px;字体粗细:300;字母间距:0.02em;-webkit-transition:所有 0.3 秒的缓入缓出;-moz-transition:所有 0.3 秒的缓入缓出;-ms-transition:所有 0.3 秒的缓入缓出;-o-transition:所有 0.3 秒的缓入缓出;过渡:所有 0.3 秒的缓入缓出;}.navigation-overlay {背景颜色:rgba(17, 17, 17, 0.5);宽度:100%;行高:0;-webkit-transition:所有 0.3 秒的缓入缓出;-moz-transition:所有 0.3 秒的缓入缓出;-ms-transition:所有 0.3 秒的缓入缓出;-o-transition:所有 0.3 秒的缓入缓出;过渡:所有 0.3 秒的缓入缓出;}.navigation-overlay.sticky {背景:#000;背景:RGBA(0,0,0,0.8);可见性:可见;不透明度:0.75;}.navigation-overlay.sticky .navbar-nav >立>一种,.navigation-overlay.sticky .menu-socials li >一种 {行高:60px;}.navbar-header {宽度:20%;padding-right: 15px;}.nav-wrap {宽度:60%;}.menu-社交{宽度:20%;浮动:对;填充:0 15px;}.logo 容器 {填充:0 15px;向左飘浮;}.logo 包装 {显示:表;宽度:100%;}.logo 包装 >一种 {显示:表格单元格;垂直对齐:中间;高度:90px;-webkit-transition:所有 0.3 秒的缓入缓出;-moz-transition:所有 0.3 秒的缓入缓出;-ms-transition:所有 0.3 秒的缓入缓出;-o-transition:所有 0.3 秒的缓入缓出;过渡:所有 0.3 秒的缓入缓出;}.logo-wrap.shrink >一种 {高度:60px;}.logo 包装 img {-webkit-transition:所有 0.3 秒的缓入缓出;-moz-transition:所有 0.3 秒的缓入缓出;-ms-transition:所有 0.3 秒的缓入缓出;-o-transition:所有 0.3 秒的缓入缓出;过渡:所有 0.3 秒的缓入缓出;高度:66px;}.logo-wrap.shrink img {高度:48px;}.navbar-collapse.in {溢出-x:隐藏;}.navbar-nav >立>答:悬停,.navbar-nav >.active >一种,.navbar-nav >.active >一:专注,.navbar-nav >.active >答:悬停,.menu-socials li >一个:悬停{不透明度:1;}.navbar-collapse {填充:0;边框顶部:无;}.nav .open >一种,.nav .open >一:专注,.nav .open >答:悬停,.nav >立>一:专注,.nav >立>一个:悬停{背景色:透明;文字装饰:无;边框颜色:#f2f2f2;}@media(最大宽度:991px){.navigation-overlay,.navigation-overlay.sticky {背景颜色:rgba(17, 17, 17, 0.9);}.nav-wrap {宽度:100%;填充:0;最小高度:0;}.nav-type-1 .container-fluid {填充:0 15px;}.navbar-header {宽度:100%;填充右:0;}.logo 包装 img {高度:48px;}.logo 包装 >一种 {高度:60px;}.navbar-nav {宽度:100%;填充:40px 0;}.navigation-overlay.sticky .navbar-nav >立>一种,.navigation-overlay .navbar-nav >立>一种 {填充:10px 0;行高:30px;}}div.video{宽度:80%;保证金:0 自动;}

    <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/js/bootstrap.min.js"></脚本><link href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet"/><div class="navigation-overlay sticky"><div class="container-fluid"><div class="row"><div class="navbar-header"><button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navbar-collapse"><span class="sr-only">切换导航</span><span class="icon-bar"></span><span class="icon-bar"></span><span class="icon-bar"></span><!-- 标志 --><div class="logo-container"><div class="logo-wrap local-scroll shrink"><a href="#home"></a>

    <div class="col-md-8 col-xs-12 nav-wrap"><div class="collapse navbar-collapse text-center" id="navbar-collapse"><ul class="nav navbar-nav local-scroll text-center">

  • <a href="#home">首页</a>
  • <li><a href="#services">团队</a><li><a href="#portfolio">作品</a><li><a href="#about-us">活动</a><li><a href="#contact">联系方式</a>

    <!-- 结束列 -->

    <!-- 结束行-->

    <!-- 结束容器-->

    <!-- 结束导航--><img class="logo img-fluid" alt="风暴之眼"src="logo.png"><div class="boxmain"><div class="container-fluid"><div class="row"><div class="col-md-6 col-sm-12 col-xs-12"><div class="视频"><iframe src="https://www.facebook.com/plugins/video.php?href=https%3A%2F%2Fwww.facebook.com%2Feyeofthestormpro%2Fvideos%2F638067739703491%2F&show_text=0&width=560" width="560" height="315" style="border:none;overflow:hidden" scrolling="no" frameborder="0" allowTransparency="true" allowFullScreen="true"></iframe>

    <div class="col-md-6 col-sm-12 col-xs-12"><p class="underh">Eye of the Storm Productions 是一家致力于涉足电子音乐领域的娱乐企业.我们为地下电子音乐界提供广泛的服务,并为我们所做的工作感到自豪.我们提供我们自己精选的最有抱负的年轻 DJ/制作人和摄影师/电影摄影师,以及专业的舞台管理解决方案.我们还与 Fulcrum Designs and Staging 合作,为您带来最好的舞台设计和施工.包括定制遮阳帆安装和 VJ 服务.</p>

    <div class="container-fluid"><div class="footer"><div class="row" class="footerRow"><div class="col-md-6 col-sm-6 col-xs-12"><iframe src="https://www.facebook.com/plugins/like.php?href=https%3A%2F%2Fwww.facebook.com%2Feyeofthestormpro&width=450&layout=standard&action=like&size=small&show_faces=true&share=true&height=80&appId" width="450" height="80" style="border:none;overflow:hidden" scrolling="no" frameborder="0" allowTransparency="真"></iframe>

    <div class="col-md-6 col-sm-6 col-xs-12"><p class="footertext">版权所有 © 2017 Eye Of The Storm Productions.保留所有权利.

    <p class="footertext">由 Charlie Fisher 开发的网站</p>

    对于响应式导航,请参阅bootstrap-navbar 模板.如果向下滚动 t=在此页面上,有用于响应式导航的预先编写的代码.

    everyone! I'm currently doing some free work for a friend of mine to contribute to my portfolio and keep me on my feet learning.

    Everything is going great and looking great, but unfortunately, I'm having a lot of trouble trying to make some of the content responsive. I'm using the Bootstrap grid framework.

    Alright so here's my CSS

    .footertext {
      font-family: 'Oxygen', sans-serif;
      font-weight: 100;
      font-size: 15px;
      color: white;
      margin-left: 30px;
      opacity: 0.5;
      text-align: right;
    }
    .lastbox {
      font-family: 'Oxygen', sans-serif;
      font-weight: 100;
      font-size: 19px;
      text-align: center;
    }
    .footer {
      background-size: cover;
      height: 105px;
      box-shadow: inset 0 0 0 1000px rgba(0,0,0,.5);
      margin-top: 100px;
      padding-top: 20px;
      padding-bottom: 20px;
    
    }
    .boxmain {
      background-color: white;
      width: 100%;
      height: 25em;
      background-size: cover;
      max-width: 100%;
    
    }
    .videocenter {
      text-align: center;
    }
    .video {
      padding-top: 1.875em;
      text-align: center;
    }
    .underh {
      font-family: 'Oxygen', sans-serif;
      font-weight: 100;
      font-size: 22px;
      padding-top: 2.0625em;
      margin-left: 1.25em;
      max-width: 100%;
    }
    .heading {
      font-family: 'Oswald', sans-serif;
      font-weight: 100;
      font-size: 49px;
    }
    .box1 {
      padding-top: 25px;
    }
    body {
      font-family: 'Oswald', sans-serif;
      background: url(background.jpg) no-repeat center center fixed;
      background-size: cover;
      box-shadow: inset 0 0 0 1000px rgba(0,0,0,.3);
      max-width: 100%;
    
    }
    .logo {
      display: block;
      width: 75%;
      height: 96%;
      margin: 0 auto;
      max-width: 100%;
    }
    
    /*-------------------------------------------------------*/
    /* NAVBAR
    /*-------------------------------------------------------*/
    
    .navbar {
      margin-bottom: 0;
      border: none;
      min-height: 60px;
      -webkit-backface-visibility: hidden;
      backface-visibility: hidden;
      -webkit-transition: all 0.3s ease-in-out;
      -moz-transition: all 0.3s ease-in-out;
      -ms-transition: all 0.3s ease-in-out;
      -o-transition: all 0.3s ease-in-out;
      transition: all 0.3s ease-in-out;
      z-index: 1200;
    }
    
    .navbar-nav {
      margin: 0;
      float: none;
      display: inline-block;
    }
    
    .navbar-nav > li > a {
      text-transform: uppercase;
      padding: 0 24px;
      line-height: 90px;
      color: #fff;
      font-size: 19px;
      font-weight: 300;
      letter-spacing: 0.02em;
      -webkit-transition: all 0.3s ease-in-out;
      -moz-transition: all 0.3s ease-in-out;
      -ms-transition: all 0.3s ease-in-out;
      -o-transition: all 0.3s ease-in-out;
      transition: all 0.3s ease-in-out;
    }
    
    .navigation-overlay {
      background-color: rgba(17, 17, 17, 0.5);
      width: 100%;
      line-height: 0;
      -webkit-transition: all 0.3s ease-in-out;
      -moz-transition: all 0.3s ease-in-out;
      -ms-transition: all 0.3s ease-in-out;
      -o-transition: all 0.3s ease-in-out;
      transition: all 0.3s ease-in-out;
    }
    
    .navigation-overlay.sticky {
      background: #000;
      background: rgba(0,0,0,0.8);
      visibility: visible;
      opacity: 0.75;
    }
    
    .navigation-overlay.sticky .navbar-nav > li > a,
    .navigation-overlay.sticky .menu-socials li > a {
      line-height: 60px;
    }
    
    .navbar-header {
      width: 20%;
      padding-right: 15px;
    }
    
    .nav-wrap {
      width: 60%;
    }
    
    .menu-socials {
      width: 20%;
      float: right;
      padding: 0 15px;
    }
    
    .logo-container {
      padding: 0 15px;
      float: left;
    }
    
    .logo-wrap {
      display: table;
      width: 100%;
    }
    
    .logo-wrap > a {
      display: table-cell;
      vertical-align: middle;
      height: 90px;
      -webkit-transition: all 0.3s ease-in-out;
      -moz-transition: all 0.3s ease-in-out;
      -ms-transition: all 0.3s ease-in-out;
      -o-transition: all 0.3s ease-in-out;
      transition: all 0.3s ease-in-out;
    }
    
    .logo-wrap.shrink > a {
      height: 60px;
    }
    
    .logo-wrap img {
      -webkit-transition: all 0.3s ease-in-out;
      -moz-transition: all 0.3s ease-in-out;
      -ms-transition: all 0.3s ease-in-out;
      -o-transition: all 0.3s ease-in-out;
      transition: all 0.3s ease-in-out;
      height: 66px;
    }
    
    .logo-wrap.shrink img {
      height: 48px;
    }
    
    .navbar-collapse.in {
      overflow-x: hidden;
    }
    
    .navbar-nav > li > a:hover,
    .navbar-nav > .active > a,
    .navbar-nav > .active > a:focus,
    .navbar-nav > .active > a:hover,
    .menu-socials li > a:hover {
      opacity: 1;
    }
    
    .navbar-collapse {
      padding: 0;
      border-top: none;
    }
    
    .nav .open > a,
    .nav .open > a:focus,
    .nav .open > a:hover,
    .nav > li > a:focus,
    .nav > li > a:hover {
      background-color: transparent;
      text-decoration: none;
      border-color: #f2f2f2;
    }
    
    @media (max-width: 991px) {
      .navigation-overlay,
      .navigation-overlay.sticky {
        background-color: rgba(17, 17, 17, 0.9);
      }
      .nav-wrap {
        width: 100%;
        padding: 0;
        min-height: 0;
      }
      .nav-type-1 .container-fluid {
        padding: 0 15px;
      }
      .navbar-header {
        width: 100%;
        padding-right: 0;
      }
      .logo-wrap img {
        height: 48px;
      }
      .logo-wrap > a {
        height: 60px;
      }
      .navbar-nav {
        width: 100%;
        padding: 40px 0;
      }
      .navigation-overlay.sticky .navbar-nav > li > a,
      .navigation-overlay .navbar-nav > li > a {
        padding: 10px 0;
        line-height: 30px;
      }
    }

    <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/js/bootstrap.min.js"></script>
    <link href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet"/>
    
    <div class="navigation-overlay sticky">
      <div class="container-fluid">
        <div class="row">
          <div class="navbar-header">
            <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navbar-collapse">
              <span class="sr-only">Toggle navigation</span>
              <span class="icon-bar"></span>
              <span class="icon-bar"></span>
              <span class="icon-bar"></span>
            </button>
            <!-- Logo -->
            <div class="logo-container">
              <div class="logo-wrap local-scroll shrink">
                <a href="#home">
                </a>
              </div>
            </div>
          </div>
          <div class="col-md-8 col-xs-12 nav-wrap">
            <div class="collapse navbar-collapse text-center" id="navbar-collapse">
              <ul class="nav navbar-nav local-scroll text-center">
                <li class="active">
                  <a href="#home">Home</a>
                </li>
                <li>
                  <a href="#services">Team</a>
                </li>
                <li>
                  <a href="#portfolio">Works</a>
                </li>
                <li>
                  <a href="#about-us">Events</a>
                </li>
                <li>
                  <a href="#contact">Contact</a>
                </li>
              </ul>
            </div>
          </div>
          <!-- end col -->
        </div>
        <!-- end row -->
      </div>
      <!-- end container -->
    </div>
    <!-- end navigation -->
    <img class="logo img-fluid" alt="Eye Of The Storm"src="logo.png">
    <div class="boxmain">
      <div class="container-fluid">
        <div class="row">
          <div class="col-xs-6">
            <div class="video">
            </div>
            <iframe src="https://www.facebook.com/plugins/video.php?href=https%3A%2F%2Fwww.facebook.com%2Feyeofthestormpro%2Fvideos%2F638067739703491%2F&show_text=0&width=560" width="560" height="315" style="border:none;overflow:hidden" scrolling="no" frameborder="0" allowTransparency="true" allowFullScreen="true"></iframe>
          </div>
          <div class="col-xs-6">
            <p class="underh">Eye of the Storm Productions is an entertainment business dedicated to its involvement in the electronic music scene.
              We offer a large range of services to  the underground electronic music scene and pride ourselves on the work that we do.
              We offer our own selection of the best aspiring young DJs/Producers and photographers/cinematographers, as well as professionally run stage management solutions.
              We have also partnered with Fulcrum Designs and Staging, to bring you the best in stage design and construction.  Including custom shade sail installation and VJ services.
            </p>
          </div>
        </div>
      </div>
    </div>
    <div class="container-fluid">
      <div class="footer">
        <div class="row">
          <div class="col-xs-6">
            <iframe src="https://www.facebook.com/plugins/like.php?href=https%3A%2F%2Fwww.facebook.com%2Feyeofthestormpro&width=450&layout=standard&action=like&size=small&show_faces=true&share=true&height=80&appId" width="450" height="80" style="border:none;overflow:hidden" scrolling="no" frameborder="0" allowTransparency="true"></iframe>
          </div>
          <div class="col-xs-6">
            <p class="footertext">Copyright © 2017 Eye Of The Storm Productions. All Rights Reserved.</p>
            <p class="footertext">Website developed by Charlie Fisher</p>
          </div>
        </div>
      </div>
    </div>

    I'm focousing more on trying to make the middle white backround and content inside responsive thank you!

    解决方案

    Try this. It'll improve the page responsiveness :

    body{
      width:100%;
      margin:0;
      padding:0;
      max-width:100%;
    }
    .container-fluid,.row{
      width:100%;
      margin:0;
      padding:0;
      max-width:100%;
    }
    .footertext {
      font-family: 'Oxygen', sans-serif;
      font-weight: 100;
      font-size: 15px;
      color: white;
      margin-left: 30px;
      opacity: 0.5;
      text-align: right;
    }
    .lastbox {
      font-family: 'Oxygen', sans-serif;
      font-weight: 100;
      font-size: 19px;
      text-align: center;
    }
    .footer {
      background-size: cover;
      margin:0;
      padding:0;
      box-shadow: inset 0 0 0 1000px rgba(0,0,0,.5);
      padding:20px 0 10px 0;
    }
    .boxmain {
      background-color: white;
      width: 100%;
      min-height:32.7em;
      background-size: cover;
      max-width: 100%;
    }
    .videocenter {
      text-align: center;
    }
    .video {
      padding-top: 1.875em;
      text-align: center;
    }
    .underh {
      font-family: 'Oxygen', sans-serif;
      font-weight: 100;
      font-size: 22px;
      padding-top: 2.0625em;
      margin-left: 1.25em;
      max-width: 100%;
    }
    .heading {
      font-family: 'Oswald', sans-serif;
      font-weight: 100;
      font-size: 49px;
    }
    .box1 {
      padding-top: 25px;
    }
    body {
      font-family: 'Oswald', sans-serif;
      background: url(background.jpg) no-repeat center center fixed;
      background-size: cover;
      box-shadow: inset 0 0 0 1000px rgba(0,0,0,.3);
      max-width: 100%;
    
    }
    .logo {
      display: block;
      width: 75%;
      height: 96%;
      margin: 0 auto;
      max-width: 100%;
    }
    
    /*-------------------------------------------------------*/
    /* NAVBAR
    /*-------------------------------------------------------*/
    
    .navbar {
      margin-bottom: 0;
      border: none;
      min-height: 60px;
      -webkit-backface-visibility: hidden;
      backface-visibility: hidden;
      -webkit-transition: all 0.3s ease-in-out;
      -moz-transition: all 0.3s ease-in-out;
      -ms-transition: all 0.3s ease-in-out;
      -o-transition: all 0.3s ease-in-out;
      transition: all 0.3s ease-in-out;
      z-index: 1200;
    }
    
    .navbar-nav {
      margin: 0;
      float: none;
      display: inline-block;
    }
    
    .navbar-nav > li > a {
      text-transform: uppercase;
      padding: 0 24px;
      line-height: 90px;
      color: #fff;
      font-size: 19px;
      font-weight: 300;
      letter-spacing: 0.02em;
      -webkit-transition: all 0.3s ease-in-out;
      -moz-transition: all 0.3s ease-in-out;
      -ms-transition: all 0.3s ease-in-out;
      -o-transition: all 0.3s ease-in-out;
      transition: all 0.3s ease-in-out;
    }
    
    .navigation-overlay {
      background-color: rgba(17, 17, 17, 0.5);
      width: 100%;
      line-height: 0;
      -webkit-transition: all 0.3s ease-in-out;
      -moz-transition: all 0.3s ease-in-out;
      -ms-transition: all 0.3s ease-in-out;
      -o-transition: all 0.3s ease-in-out;
      transition: all 0.3s ease-in-out;
    }
    
    .navigation-overlay.sticky {
      background: #000;
      background: rgba(0,0,0,0.8);
      visibility: visible;
      opacity: 0.75;
    }
    
    .navigation-overlay.sticky .navbar-nav > li > a,
    .navigation-overlay.sticky .menu-socials li > a {
      line-height: 60px;
    }
    
    .navbar-header {
      width: 20%;
      padding-right: 15px;
    }
    
    .nav-wrap {
      width: 60%;
    }
    
    .menu-socials {
      width: 20%;
      float: right;
      padding: 0 15px;
    }
    
    .logo-container {
      padding: 0 15px;
      float: left;
    }
    
    .logo-wrap {
      display: table;
      width: 100%;
    }
    
    .logo-wrap > a {
      display: table-cell;
      vertical-align: middle;
      height: 90px;
      -webkit-transition: all 0.3s ease-in-out;
      -moz-transition: all 0.3s ease-in-out;
      -ms-transition: all 0.3s ease-in-out;
      -o-transition: all 0.3s ease-in-out;
      transition: all 0.3s ease-in-out;
    }
    
    .logo-wrap.shrink > a {
      height: 60px;
    }
    
    .logo-wrap img {
      -webkit-transition: all 0.3s ease-in-out;
      -moz-transition: all 0.3s ease-in-out;
      -ms-transition: all 0.3s ease-in-out;
      -o-transition: all 0.3s ease-in-out;
      transition: all 0.3s ease-in-out;
      height: 66px;
    }
    
    .logo-wrap.shrink img {
      height: 48px;
    }
    
    .navbar-collapse.in {
      overflow-x: hidden;
    }
    
    .navbar-nav > li > a:hover,
    .navbar-nav > .active > a,
    .navbar-nav > .active > a:focus,
    .navbar-nav > .active > a:hover,
    .menu-socials li > a:hover {
      opacity: 1;
    }
    
    .navbar-collapse {
      padding: 0;
      border-top: none;
    }
    
    .nav .open > a,
    .nav .open > a:focus,
    .nav .open > a:hover,
    .nav > li > a:focus,
    .nav > li > a:hover {
      background-color: transparent;
      text-decoration: none;
      border-color: #f2f2f2;
    }
    
    @media (max-width: 991px) {
      .navigation-overlay,
      .navigation-overlay.sticky {
        background-color: rgba(17, 17, 17, 0.9);
      }
      .nav-wrap {
        width: 100%;
        padding: 0;
        min-height: 0;
      }
      .nav-type-1 .container-fluid {
        padding: 0 15px;
      }
      .navbar-header {
        width: 100%;
        padding-right: 0;
      }
      .logo-wrap img {
        height: 48px;
      }
      .logo-wrap > a {
        height: 60px;
      }
      .navbar-nav {
        width: 100%;
        padding: 40px 0;
      }
      .navigation-overlay.sticky .navbar-nav > li > a,
      .navigation-overlay .navbar-nav > li > a {
        padding: 10px 0;
        line-height: 30px;
      }
    }
    
    div.video{
      width:80%;
      margin:0 auto;
    }

    <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/js/bootstrap.min.js"></script>
    <link href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet"/>
      <div class="navigation-overlay sticky">
        <div class="container-fluid">
          <div class="row">
            <div class="navbar-header">
              <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navbar-collapse">
                <span class="sr-only">Toggle navigation</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
              </button>
              <!-- Logo -->
              <div class="logo-container">
                <div class="logo-wrap local-scroll shrink">
                  <a href="#home">
                  </a>
                </div>
              </div>
            </div>
            <div class="col-md-8 col-xs-12 nav-wrap">
              <div class="collapse navbar-collapse text-center" id="navbar-collapse">
                <ul class="nav navbar-nav local-scroll text-center">
                  <li class="active">
                    <a href="#home">Home</a>
                  </li>
                  <li>
                    <a href="#services">Team</a>
                  </li>
                  <li>
                    <a href="#portfolio">Works</a>
                  </li>
                  <li>
                    <a href="#about-us">Events</a>
                  </li>
                  <li>
                    <a href="#contact">Contact</a>
                  </li>
                </ul>
              </div>
            </div>
            <!-- end col -->
          </div>
          <!-- end row -->
        </div>
        <!-- end container -->
      </div>
      <!-- end navigation -->
      <img class="logo img-fluid" alt="Eye Of The Storm"src="logo.png">
      <div class="boxmain">
        <div class="container-fluid">
          <div class="row">
            <div class="col-md-6 col-sm-12 col-xs-12">
              <div class="video">
                <iframe src="https://www.facebook.com/plugins/video.php?href=https%3A%2F%2Fwww.facebook.com%2Feyeofthestormpro%2Fvideos%2F638067739703491%2F&show_text=0&width=560" width="560" height="315" style="border:none;overflow:hidden" scrolling="no" frameborder="0" allowTransparency="true" allowFullScreen="true"></iframe>
              </div>
            </div>
            <div class="col-md-6 col-sm-12 col-xs-12">
              <p class="underh">Eye of the Storm Productions is an entertainment business dedicated to its involvement in the electronic music scene.
                We offer a large range of services to  the underground electronic music scene and pride ourselves on the work that we do.
                We offer our own selection of the best aspiring young DJs/Producers and photographers/cinematographers, as well as professionally run stage management solutions.
                We have also partnered with Fulcrum Designs and Staging, to bring you the best in stage design and construction.  Including custom shade sail installation and VJ services.
              </p>
            </div>
          </div>
        </div>
      </div>
      <div class="container-fluid">
        <div class="footer">
          <div class="row" class="footerRow">
            <div class="col-md-6 col-sm-6 col-xs-12">
              <iframe src="https://www.facebook.com/plugins/like.php?href=https%3A%2F%2Fwww.facebook.com%2Feyeofthestormpro&width=450&layout=standard&action=like&size=small&show_faces=true&share=true&height=80&appId" width="450" height="80" style="border:none;overflow:hidden" scrolling="no" frameborder="0" allowTransparency="true"></iframe>
            </div>
            <div class="col-md-6 col-sm-6 col-xs-12">
              <p class="footertext">Copyright © 2017 Eye Of The Storm Productions. All Rights Reserved.</p>
              <p class="footertext">Website developed by Charlie Fisher</p>
            </div>
          </div>
        </div>
      </div>

    Also for responsive navigation refer to bootstrap-navbar template.If you scroll down t=on this page , there is pre-written code for responsive navigation.

    这篇关于需要帮助使网站响应#2的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

    查看全文
    相关文章
    前端开发最新文章
    热门教程
    热门工具
    登录 关闭
    扫码关注1秒登录
    发送“验证码”获取 | 15天全站免登陆