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

时间:2015-03-19 19:42:04

标签: php html css image

Here you can see a white gap when I scroll right我希望删除这个差距,这是我的代码:

<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 个答案:

答案 0 :(得分:0)

<强>更新

试试这个

body{
 overflow-x:hidden;
}

这应该让我知道

SideNote

在你的html中,你的内联样式有一个小错误,我在下面突出显示

<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">

如果你照顾-125px;“你有”=“”