第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定

.show不出來(lái)

<!DOCTYPE html>

<html>

<head>

<title>Milky Way</title>

<style type="text/css">

body{background-image:url(1.jpg)}

.ss{bottom: 150px;right: 345px;position: absolute;width: 1400px;height: 1000px; z-index:0;}

.aa{position: relative;top:500px;left:530px;z-index:1;float: left;border: 0;width: 800px;height: 40px;line-height: 40px;}

.bb{position: relative;top:507px;left:500px;z-index:1;float: left;border: 0;background-image: url(3.png);width: 25px;height: 25px;cursor:pointer;}

.lln{width: 800px;background-color: #fff;border: 1px solid #999;}

.lln ul{list-style: none;margin: 0;padding: 0;}

.lln ul li{padding: 3px;font-size: 14px;line-height: 25px; cursor:pointer; }

.lln ul li:hover{text-decoration: underline;background-color: #e5e5e5;}


</style>

</head>


<body>


<form class="dx" id="dx" action="http://www.baidu.com/s" target="_blank" >

<input type="text" class="aa" id="ln" name=word size=40 ?

?>

<input type="submit" class="bb" value="" >

</form>


<img class="ss" src="2.png">

<div class="lln" id="lln" style="display:none;">

<ul>

<li>搜索結(jié)果1</li>

<li>搜索結(jié)果2</li>

</ul>

</div>

<script src="http://code.jquery.com/jquery-1.10.2.min.js"></script>

<script >

$('#ln').bind('keyup',funtion(){

$('#lln').show().css({

top:$('#dx').offset().top+$('#dx').height()+10,

left:${'#dx'}.offset().left,

position:'absolute';

})

};

</script>

</body>


</html>


正在回答

2 回答

function 寫(xiě)錯(cuò)了 ;也用錯(cuò)了地方 ?還有標(biāo)點(diǎn)是全角。 多看看日志就行了

? ? ? ? $("#lin").bind('keyup', function () {

? ? ? ? ? ? $('#lln').show().css({

? ? ? ? ? ? ? ? top: $('#dx').offset().top + $('#dx').height() + 10,

? ? ? ? ? ? ? ? left: $('#dx').offset().left,

? ? ? ? ? ? ? ? position: 'absolute'

? ? ? ? ? ? });

? ? ? ? })


自己對(duì)照吧


0 回復(fù) 有任何疑惑可以回復(fù)我~
#1

qq_蛻變_2 提問(wèn)者

非常感謝!
2016-06-06 回復(fù) 有任何疑惑可以回復(fù)我~

細(xì)節(jié),注意左右括號(hào)的閉合,最后少了個(gè)右括號(hào)

$('#ln').bind('keyup',funtion(){

$('#lln').show().css({

top:$('#dx').offset().top+$('#dx').height()+10,

left:${'#dx'}.offset().left,

position:'absolute'

})

});


0 回復(fù) 有任何疑惑可以回復(fù)我~

舉報(bào)

0/150
提交
取消
搜索框制作
  • 參與學(xué)習(xí)       66012    人
  • 解答問(wèn)題       463    個(gè)

本課程從簡(jiǎn)入深講解搜索框的制作,學(xué)習(xí)JQ與JS實(shí)現(xiàn)Ajax技術(shù)的不同點(diǎn)

進(jìn)入課程
微信客服

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

幫助反饋 APP下載

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

公眾號(hào)

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