点击后会获得焦点,会触发css的outline样式,把input的outline(轮廓)样式设置为none,则不再显示边框,例如以下实例
<html> <body> <form> <span style="border-radius:10px 0 0 10px; border: solid 1px #b8b8b8; padding:5px;"> <input type="search" name="s" value="" placeholder="Search" style="border:0;outline:none;"> </span> </form> </body> </html>