不包含其内容的Div

时间:2017-03-14 19:33:23

标签: javascript jquery html css

我真的很奇怪。 我有网页,从ajax第二页加载到Content Div。 主要问题是Content div并不关心覆盖他的所有项目。

IMG here.

有代码:

.Main_Loaded {
    display: flex;
    flex-direction: column;
    min-width: 99%;
    height: auto;
    position: absolute;
    bottom: 90px;
    background-color: grey;
    height: auto;
    align-self: center;
    justify-content: center;
    text-align: center;
    vertical-align: middle;
    z-index: 2;
    animation: Colour_Change_Grey;
    animation-iteration-count: 1;
    animation-duration: 5s;
    transition: all 1s;
    border-radius: 15px;
}

.Main_Loaded .Title {
    margin-top: 30px;
    height: 15%;
}

.Main_Loaded .Title span {
    font: Serfi;
    font-size: 16px;
    animation: Show_up;
    animation-iteration-count: 1;
    animation-duration: 3s;
}

.Main_Loaded .Content {
    margin-bottom: 20px;
    height: 80%;
    display: flex;
    flex-direction: row;
}

.Main_Loaded .Content #Image {
    min-height: 700px;
    width: 45%;
    overflow: hidden;
    border: 3px solid black;
    animation: Show_up;
    animation-duration: 3s;
}

.Main_Loaded .Content #Image img {
    animation: Show_up;
    animation-duration: 0.5s;
    animation-iteration-count: 1;
    animation-delay: 2s;
}

.Main_Loaded .Content #Info {
    animation: Show_up;
    animation-duration: 3s;
    border: 3px solid white;
    width: 55%;
}
<div class="Main_Loaded">
<div class="Title">
  <span>
  Nasza oferta
  </span>
</div>
<div class="Content">
  <div id="Image">

    <div class="owl-carousel">
      <img class="img" class="owl-lazy" src="img/1.jpg" />
      <img class="img" class="owl-lazy" src="img/2.jpg" />
      <img class="img" class="owl-lazy" src="img/3.jpg" />
      <img class="img" class="owl-lazy" src="img/4.jpg" />
      <img class="img" class="owl-lazy" src="img/5.jpg" />
      <img class="img" class="owl-lazy" src="img/6.jpg" />
      <img class="img" class="owl-lazy" src="img/7.jpg" />
      <img class="img" class="owl-lazy" src="img/8.jpg" />
      <img class="img" class="owl-lazy" src="img/9.jpg" />
      <img class="img" class="owl-lazy" src="img/10.jpg" />
      <img class="img" class="owl-lazy" src="img/11.jpg" />
      <img class="img" class="owl-lazy" src="img/12.jpg" />
      <img class="img" class="owl-lazy" src="img/13.jpg" />
      <img class="img" class="owl-lazy" src="img/14.jpg" />
      <img class="img" class="owl-lazy" src="img/15.jpg" />
      <img class="img" class="owl-lazy" src="img/16.jpg" />
      <img class="img" class="owl-lazy" src="img/17.jpg" />
      <img class="img" class="owl-lazy" src="img/18.jpg" />
      <img class="img" class="owl-lazy" src="img/19.jpg" />
      <img class="img" class="owl-lazy" src="img/20.jpg" />
      <img class="img" class="owl-lazy" src="img/22.jpg" />
      <img class="img" class="owl-lazy" src="img/21.jpg" />
    </div>
  </div>

  <div id="Info">
    dfsdfdsfdsdsadasdasfgjdfklgndfgjbdklfjgnhdklfjghklj
  </div>
</div>
</div>
并且有页面,看错误。[删除]

1 个答案:

答案 0 :(得分:0)

问题是JQuery AJAX 将内容复制到一个文件中并按原样保留代码后,脚本开始工作:)