0

有没有办法使图像类型的表单输入具有翻转图像?

4

3 回答 3

3

尝试这个?

<input type="image" value="someValue" src="yourImage.gif" width="widthInPixels" height="heightInPixels" onmouseover="this.src='yourImageRollover.gif';" onmouseout="this.src='yourImage.gif';"> 
于 2011-04-22T16:44:54.957 回答
2

与任何其他图像相同。事件触发时更改src属性。mouseover

于 2011-04-22T16:46:53.887 回答
1

我只会使用普通的提交输入并在其上使用 css sprites。

http://www.alistapart.com/articles/sprites

于 2011-04-22T16:44:20.803 回答