亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

我的這個input框聚焦失焦事件怎么用不起呢?

我的這個input框聚焦失焦事件怎么用不起呢?

未來99 2018-07-28 18:43:29
<!DOCTYPE html><html><head><meta charset="UTF-8"><title>Document</title><script src="http://libs.baidu.com/jquery/2.0.0/jquery.min.js"></script><script type="text/javascript" >$(document).ready(function() {search_focus();});function search_focus() {$(".search-input").focus(function() {$(this).css('border-bottom', '1px solid red');}).blur(function() {$(this).css('border-bottom', '1px solid #c6ccc');});}</script><style>.search-area {margin: 5px 20px 0; border-bottom: 1px solid #C6CCCC; text-align: left;}.search-input {width: 270px; height: 40px; outline: none; font-size: 14px; color:#747878; background-color: transparent;}</style></head><body><div class="search-area"><input type="text" class="search-input"></div></body></html>
查看完整描述

1 回答

?
未來99

TA貢獻21條經驗 獲得超9個贊

好了,解決了,原來把$(this).css('border-bottom', '');這個重新值為空,就可以了。

查看完整回答
反對 回復 2018-07-28
  • 1 回答
  • 0 關注
  • 2834 瀏覽
慕課專欄
更多

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號