Image in placeholder html?
问题 Can I do something like this with pure html and if needed css and javascript: And when the mouse focuses, it becomes like this: So I was thinking of an image placeholder. Am I on the right track, or is there a better/more simpler or more straightforward method? EDIT: Just out of pure curiosity, how would I accomplish this using JavaScript, as all the current answers are all CSS-related? 回答1: If you only need to support the latest Browser use this: HTML: <input placeholder="Google Custom