最赞回答 / 叶0528
<!DOCTYPE html><html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title>淘宝搜索框</title><link type="text/css" rel="stylesheet" href="css/first.css"><style type="text/css"> @font-f...
2016-09-22
http://g.tbcdn.cn/tb/icon-font/1.1.5/iconfont:123;
@font-face{font-family: iconfont;src:url(123.eot);src: url("123.eot?#iefix") format("embedded-opentype"), url("123.woff") format("woff"), url("123.ttf") format("truetype"), url("123.svg#uxiconfont") format("svg");}
@font-face{font-family: iconfont;src:url(123.eot);src: url("123.eot?#iefix") format("embedded-opentype"), url("123.woff") format("woff"), url("123.ttf") format("truetype"), url("123.svg#uxiconfont") format("svg");}
2016-09-20
最新回答 / 哎哟Zhou哥哥
这个Txt是返回数据的一个属性名{"AS":{"Query":"d","FullResults":1,"Results":[{"Type":"AS","Suggests":[{"Txt":"斗鱼","Url":"http\u003a\u002f\u002fwww.bing.com\u002fresults.aspx\u003fq\u003d\u0025e6\u002596\u002597\u0025e9\u0025b1\u0025bc\u0026qs\u003dAS\u0026sk\u003d","Typ...
2016-09-20
这里不能在onmouseout时,删除selected样式,否则click会有问题;应该在onmouseover中将当前li设为selected,其它li样式去掉selected。
$("#search-tab").on("mouseover","li",function(){
$(this).addClass("selected");
$(this).siblings().removeClass("selected");
});
$("#search-tab").on("mouseover","li",function(){
$(this).addClass("selected");
$(this).siblings().removeClass("selected");
});
2016-09-18