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

為了賬號安全,請及時綁定郵箱和手機立即綁定

到底是那出問題了?為什么跟老師的不一樣?

*{padding:0px;margin:0px;}

ul li{list-style:none;}

.one11{width:300px;height:300px;top:100px;left:200px;border:2px solid red;

? ? ? ?position:relative;background-color:yellow;}

.two22{width:50px;height:50px;float:left;}

.two22 img{display:block;width:50px;height:50px;}

.two22 form{float:left;background-color:red;margin-left:5px;position:relative;}

.three11{border:0px;float:left;height:50px;width:150px;line-height:50px;outline:none;}

.three22{border:0px;background-image:url(a123.png);width:50px;height:50px;float:left;}

.gogo{width:199px;background:#fff;border:1px solid blue;display:none;}

.gogo ul li{font-size:15px;line-height:30px;padding:0 0 0 3px;cursor:pointer;}

.gogo ul li:hover{background-color:#437200}


</style>

</head>

<body>

<div class="one11">

<div class="two22"><img src="a123.png"></div>

<form? class="aaa" id="aaa" target="_blank" action="file:///C:/Users/Administrator/Desktop/%E6%90%9C%E7%B4%A2%E5%89%AF%E6%9C%AC.html">

<input type="text" class="three11" id="qqqq" name="q" autocomplete="off "/>

<input type="submit" class="three22" id="xiao" value=""/>

</form>

</div>

<div class="gogo" id="gogo">

<ul>

<li>搜索結果1</li>

<li>搜索結果2</li>

<li>搜索結果3</li>

</ul>

</div>

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

<script>

var lao=$("#qqqq").val();

$.get('http://api.bing.com/qsonhs.asp?q='+lao,function(){},'json');

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

?$("#gogo").show().css({

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

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

?position:'absolute'

?});

})

</script>

</body>

https://img1.sycdn.imooc.com//5bfeb15c00010a9b03950402.jpg

但是輸入內容后就變成這樣了? ?為什么不跟老師的一樣https://img1.sycdn.imooc.com//5bfeb18800016d2304330420.jpg


正在回答

舉報

0/150
提交
取消
搜索框制作
  • 參與學習       66022    人
  • 解答問題       463    個

本課程從簡入深講解搜索框的制作,學習JQ與JS實現Ajax技術的不同點

進入課程

到底是那出問題了?為什么跟老師的不一樣?

我要回答 關注問題
微信客服

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

幫助反饋 APP下載

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

公眾號

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