作者:丹_jie | 来源:互联网 | 2023-07-14 08:54
This question already has an answer here:
这个问题在这里已有答案:
- Is it possible to change between two fontawesome icons on hover? 5 answers
- 是否可以在悬停时在两个奇特的图标之间进行更改? 5个答案
I would like to apply the hover state to the inner input element of the following link by hovering the image:
我想通过悬停图像将悬停状态应用于以下链接的内部输入元素:
Hackschnitzel
So hovering the image should result in the same state as hovering the button (right state - button is green)
因此,将图像悬停应该会产生与悬停按钮相同的状态(右侧状态 - 按钮为绿色)
JSFiddle:https://jsfiddle.net/1oj3ddft/
Edit 1 -
https://jsfiddle.net/1oj3ddft/1/
https://jsfiddle.net/1oj3ddft/1/