Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试预加载我的图像,但它不起作用。在我的主样式表中我创建了#preload,然后在我的html中我创建了一个预加载div。在css中,我做了后台方法来尝试预加载它们,但它不起作用。
您可以使用 Javascript 完成此操作
<SCRIPT language="JavaScript"> <!-- if (document.images) { pic1= new Image(100,25); pic1.src="http://someplace.com/image1.gif"; } //--> </SCRIPT>