当你在网站上按F5而不是按enter时,图像消失了

The Images are disappearing when you press F5 on the website but not with enter

本文关键字:enter 消失了 图像 网站 F5 当你      更新时间:2023-09-26

我有一个奇怪的问题,现在我更好奇的是为什么,甚至比如何解决它。

当你点击刷新或F5时,图像会消失,

当你点击链接,你可能会看到或没有图像(完全随机)

但是当你按回车键或点击url时(取决于你的浏览器)你会看到三个,

链接:

http://belcorp.minonu.com/tips-y-consejos-para-promover-un-descanso-reparador/http://belcorp.minonu.com/tips-tambien-recomendamos/

任何提示都会很棒!(该网站仍然没有完全的js和样式优化,这就是为什么你会看到一些样式和脚本没有缩小)

更新-----这是代码看起来所有三个图像是相同的——

<div class="spb">
   <div class="demo">
   <img id="d1" src="<?php echo get_template_directory_uri(); ?>/images/f2.png" alt="Vainilla" onmouseover="_gaq.push(['_trackEvent', 'NOCTURNE', 'TIPS-AROMAS', 'VAINILLA']);" width="270px" height="270px" />
    <div class="bcol1 contenthover" style="background:#ebe5d8; color:#472035;">
    <h2>Vainilla</h2>
  <p>Su suave aroma produce un efecto balsámico contra la ansiedad, el cual consigue relajar a las personas más nerviosas.</p>
    </div>
    </div>
</div>

我不知道为什么它有时不工作,但你应该添加width="270px" height="270px",我试过了,它现在一直工作