简体   繁体   English

图像出现然后消失

[英]Image appears then disappears

Fiddle 小提琴

I need to have my image inside 2 divs, why does it appear and then disappear? 我需要将我的图像放置在2格内,为什么它会出现然后消失?

I need it so that it's always on screen. 我需要它,以便它始终在屏幕上。

<div class="ad-container">
<div class="ad-item">
        <img src="http://www.joomlaworks.net/images/demos/galleries/abstract/7.jpg"/>
</div>
</div>

Panthro, Panthro,

Check and make sure there is no Javascript and any other code manipulating the classes: ad-container and ad-item. 检查并确保没有Java语言以及任何其他操纵类的代码:ad-container和ad-item。

The snippet of code you provided in the fiddle looks fine to me. 您在小提琴中提供的代码片段对我来说很好。 There must be other code manipulating those classes. 必须有其他代码来操纵这些类。

Remove ad from the class names. 从课程名称中删除ad JSfiddle blocks the content related to ads similar to AdBlock functionality. JSfiddle阻止类似于AdBlock功能的广告相关内容。

<div class="container">
  <div class="item">
    <img src="http://joomlaworks.net/images/demos/galleries/abstract/7.jpg"/>
  </div>
</div>

JSfiddle JS小提琴

I had the same issue. 我遇到过同样的问题。 I was able to solve it by turning off my adblock for the page. 我可以通过关闭该页面的adblock来解决此问题。

您的CSS一定是引起问题的原因,请检查该问题或在此处发布问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM