如何在聚合物中预加载例如悬停图像?

时间:2014-09-18 20:40:28

标签: polymer

这是否会通过更改src" home / 1.png"来预加载我的图像以进行悬停。到" home / 1b.png"在javascript中还是有更好的预加载方法吗?

<section unresolved>
        <img hidden src="home/1b.png">
        <img hidden src="home/2b.png">
        <img hidden src="home/3b.png">
        <img hidden src="home/4b.png">
        <img hidden src="home/5b.png">
        <img hidden src="home/6b.png">
        <img hidden src="home/7b.png">
        <img hidden src="home/8b.png">
        <img hidden src="home/9b.png">

        <img src="home/1.png">
        <img src="home/2.png">
        <img src="home/3.png">
        <img src="home/4.png">
        <img src="home/5.png">
        <img src="home/6.png">
        <img src="home/7.png">
        <img src="home/8.png">
        <img src="home/9.png">
</section>

0 个答案:

没有答案