最近中文字幕高清中文字幕无,亚洲欧美高清一区二区三区,一本色道无码道dvd在线观看 ,一个人看的www免费高清中文字幕

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定
已解決430363個(gè)問題,去搜搜看,總會(huì)有你想問的

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

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

未來(lái)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 回答

?
未來(lái)99

TA貢獻(xiàn)21條經(jīng)驗(yàn) 獲得超9個(gè)贊

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

查看完整回答
反對(duì) 回復(fù) 2018-07-28
  • 1 回答
  • 0 關(guān)注
  • 2861 瀏覽
慕課專欄
更多

添加回答

舉報(bào)

0/150
提交
取消
微信客服

購(gòu)課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)