Tip: you can modify some code before running
Css + javascript defines and controls the input border and background<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>Css + javascript defines and controls the input border and background</title><style type="text/css"># Search {padding: 0; margin: 0; background: url (yun_qi_img/logo.jpg) no-repeat; border: 1px solid #000; width: 119px; height: 16px ;}</style><script type="text/javascript">Function remove () {var dom = document. getElementById ("search"); dom. style. background = "none";} function whenBlur () {var dom = document. getElementById ("search"); dom. style. background = "url (yun_qi_img/logo.jpg) no-repeat ";}</script></head><body><input type="text" id="search" onfocus="remove();"/></body></html>
Tip: you can modify some code before running