show div while input is selected using css without javascript
问题 My question is if anyway when I start to write in the input, not disappear if i slide my mouse out of the ".box" div. Wonder if any selector or possible way to do without any Javascript. Here is the example: http://jsfiddle.net/vzRqY/ <div class="box"> <div class="overlay"><input/></div> LOREM IPSUM LOREM IPSUM <br/> LOREM IPSUM LOREM IPSUM LOREM IPSUM </div> Thanks 回答1: Yes, it requires you to rearrange where the input is, but it can be done. HTML <div class="box"> <input/> <div class=