什么是HTML / CSS / javascript,可以让你使用带有多个图像的onp .png [英] What is the HTML/CSS/javascript that lets you use onr .png with multiple images

查看:145
本文介绍了什么是HTML / CSS / javascript,可以让你使用带有多个图像的onp .png的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

什么是html / css / javascript,它允许你在其上使用一个带有多个图像的.png,在页面首次显示时只选择一个图像,而在点击第一个图像时选择另一个图像(例如:play)现在)



我尝试过:



我可以使用onmouseover当有两个单独的图像时,但是当所有图像都在一个图像文件上时,我无法弄清楚当有多个图像时(例如:现在播放)如何使用代码。

What is the html/css/javascript that lets you use one .png with multiple images on it to select only one of the images when the page first shows up and another when the first image is clicked on (for example: play now)

What I have tried:

I can use onmouseover when there is two separate images, but I can't figure out how to use code when there are multiple images (for example: play now) when all the images are on one image file.

推荐答案

这是一个很好的问题;我甚至投了5票,即使你可以自己想出答案。



看起来没有这样的功能,我觉得这很棒。这篇关于HTML5(最新HTML版本)的W3文档甚至具体说明:

This is a nice question; I even voted 5, even though you could figure the answer by yourself.

It looks like there is no such feature, which I think would be great to have. This W3 document on HTML5 (latest HTML version) even states specifically:



src =可能被空格包围的非空URL

引用非交互式(可选动画)图像的URL,既不分页也不编写脚本


-SA


这篇关于什么是HTML / CSS / javascript,可以让你使用带有多个图像的onp .png的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆