Commit 6c054d20 by wd

fix搜索框内容为空放大后不能复原问题

parent b4f88d5e
...@@ -68,5 +68,12 @@ require([ ...@@ -68,5 +68,12 @@ require([
$("#search").on("focus",function () { $("#search").on("focus",function () {
$(this).css("width","500px").css("font-size","20px"); $(this).css("width","500px").css("font-size","20px");
}); });
$('#search').on('blur',function (){
if (!$(this).val()){
$(this).attr("style","");
}
});
}); });
</script> </script>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment