donglu1971 2015-03-19 19:42
浏览 23
已采纳

在div的背景图象不是敏感的

Here you can see a white gap when I scroll right I want that gap to be deleted, here's my code:

<div class="top fullscreen background parallax img-responsive" id="inicio" style="background-image:url('images/fondos/<? echo rand(1,5); ?>.png');" " data-img-width="1920" data-img-height="1080" data-diff="250">
    <div class="content-a">
        <div class="overlay"></div>
        <div class="content-b">
            <div class="dark-line">
                <h1>Bedif</h1>
                <!-- <img src="images/bedif636x144.png" class="col-sm-3 col-md-6 offset-md-6" style="margin-left: auto;  margin-right: auto;"> -->
                    <? if($this->session->flashdata('error')){?>
                            <p><div class="alert alert-danger" style="width: 500px;margin-left: auto;  margin-right: auto;"><? echo $this->session->flashdata('error') ?></div></p>
                    <?}?>
                <p>

                <?php echo form_open("login/entrar",'class="form-inline"'); ?>                    <div class="form-group">
                    <input type="text" class="form-control" name="email" placeholder="Email">
                  </div>
                  <div class="form-group">
                    <input type="password" class="form-control" name="password" placeholder="Contraseña">
                  </div>
                  <button type="submit" class="btn btn-default">Iniciar sesion</button>
                </form>
                </p>
                <p>Para registrar una cuenta, entra en <b>Bedif</b> usando la ip <b>mc.bedif.net</b></p>
            </div>
        </div>
    </div>
</div>
  • 写回答

1条回答 默认 最新

  • dongxun1978 2015-03-19 19:48
    关注

    Update

    Try this

    body{
     overflow-x:hidden;
    }
    

    This should work let me know

    SideNote

    In your html you have a minor error in your inline style, I highlighted it below

    <div class="top fullscreen background parallax img-responsive not-overflow" id="inicio" style="background-image: url(&quot;images/fondos/3.png&quot;); background-attachment: fixed; background-size: 1991.11px 1120px; background-position: 50% -125px;" "="" data-img-width="1920" data-img-height="1080" data-diff="250">
    

    if you look after -125px;" you have "=""

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 如何在scanpy上做差异基因和通路富集?
  • ¥20 关于#硬件工程#的问题,请各位专家解答!
  • ¥15 关于#matlab#的问题:期望的系统闭环传递函数为G(s)=wn^2/s^2+2¢wn+wn^2阻尼系数¢=0.707,使系统具有较小的超调量
  • ¥15 FLUENT如何实现在堆积颗粒的上表面加载高斯热源
  • ¥30 截图中的mathematics程序转换成matlab
  • ¥15 动力学代码报错,维度不匹配
  • ¥15 Power query添加列问题
  • ¥50 Kubernetes&Fission&Eleasticsearch
  • ¥15 報錯:Person is not mapped,如何解決?
  • ¥15 c++头文件不能识别CDialog