1.jquery怎么实现搜索框搜索功能jquery怎么实现搜索框搜索功能示例代码L:(function($) {$.fn.Z_TMAIL_SIDER_V2 = function(options) { var opts = $.extend( {}, $.fn.Z_TMAIL_SIDER_V2.defaults, options); var base = this; var thisTitle = $(base).find('.allcategorys'); var Z_SubList = $(base).find('.sublist'); var navPosTop = $(base).offset().top; var timeOut = null;$(thisTitle).find('.title-item-hd a').hover(function(e) { clearTimeout(timeOut); var thisLi = this; if($(Z_SubList).is(':visible')) return; showSubList(thisLi); e.stopPropagation(); }, function(e) { var thisLi = this; timeOut = setTimeout(function() { hideSubList(thisLi); }, 100);$(Z_SubList).hover(function(e){ clearTimeout(timeOut); }, function() { clearTimeout(timeOut); timeOut = setTimeout(function() { hideSubList(thisLi); }, 100); }); e.stopPropagation(); }); var showSubList = function(thisli) { var top = $(thisli).height() - opts.slideHeight;$(thisli).addClass('curr').find('s').addClass('curr');$(Z_SubList).css({top: top, opacity: 0}).show().stop().animate({top: $(thisli).height(), opacity : 1}); }; var hideSubList = function(thisli) {$(thisli).removeClass('curr').find('s').removeClass('curr');$(Z_SubList).hide(); };$(window).resize(function() { var sTop = $(window).scrollTop(); if(sTop >= navPosTop) { if($.browser.msie && $.browser.version < 7){$(base).css({position: 'absolute', top: sTop}); }else {$(base).css({position: 'fixed', top: 0}); } }else {$(base).css({position: 'relative', top: 0}); } });$(window).scroll(function() { var sTop = $(window).scrollTop(); if(sTop >= navPosTop) { if($.browser.msie && $.browser.version < 7){$(base).css({position: 'absolute', top: sTop}); }else {$(base).css({position: 'fixed', top: 0}); } }else {$(base).css({position: 'relative', top: 0}); } }); };$.fn.Z_TMAIL_SIDER_V2.defaults = { slideHeight : 8 }; })(jQuery); 。
2.如何用HTML写搜索框当的代码绝对定位相对定位 , 很简单的吧 。a 的具体位置自己调整right与top的值就行了 。
<div class="box">
<input type="text"/>
<a href="http://www.xuexi88.com/zhishi/#">;荣耀v10</a>
</div>.box{position: relative; width:200px;height:50px;}
input{width:100%;height:100%;border:none;line-height:50px;}
a{display:block;position:absolute;top:20px;right:100px;z-index:99}
3.HTML搜索框怎么写,请给出代码<meta charset="utf-8"> 搜索 <body>搜索不知道你说的是不是这个