[英]Image appears then disappears
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. 必须有其他代码来操纵这些类。
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.