| 示范脚本一 DIV脚本:
 <div class="so"><div class="box"><div class="left">$func_summary(para=Keyword,title=no,memo=1,content=no)$</div>
 <div class="right">$func_search(table=1|2,btn=1)$</div></div></div>
 CSS脚本:
 .so{ display:inline-block; width:100%; border-top:1px solid #eee; padding-top:20px; margin-top:50px;}
 .so .box .left .Subject .Descript{ height:50px; line-height:50px; text-indent:68px; font-size:20px; background:url(lamp.jpg) no-repeat;}
 .so .box .right{ height:32px; line-height:32px; width:300px; background:url(so.jpg) no-repeat; margin-top:10px;}
 .so #kw{ height:26px; line-height:26px; width:200px; margin-left:10px; margin-top:2px; border:0}
 .so select{ border:0;}
 .so .BtnSearch{ text-indent:-99px; width:26px; background:none; border:0}
 JS脚本:
 if(jQuery("#kw").val()==""){jQuery("#kw").val("请输入搜索关键词...")}
 var cur=jQuery("#kw").val();
 jQuery("#kw").click(function(){jQuery("#kw").val("");})
 jQuery("#kw").focusout(function(){if(jQuery("#kw").val()==""){jQuery("#kw").val(cur)}else{cur=jQuery("#kw").val();}})
案例参考:hlby
 截图效果:
 
   特别提醒:不同网站应具风格进行脚本调整,以确保最简短最优化最合理的脚本,不要千篇一律复制粘贴。
 
 以上脚本已经淘汰,最新推荐:
 DIV:
 <div class="search"><div class="container"><div class="row">$func_search(table=1|2,para=Search,memo=1,show=title|memo|content,btn=1)$</div></div></div>
 CSS:
 hondy.css
 .search .Content{flex:1}
 .search form{display:flex;flex-flow: row nowrap;border:1px solid var(--primary)}
 .search input,.search select{height:30px;line-height:28px;padding:0 5px;font-size:14px;border-style:none}
 .search input[name=kw]{flex:1;border-right:0 solid transparent}
 .search input[type=submit]{padding-left:10px;padding-right:10px}
 .search select{padding-right:0}
 style.css
 .search{padding:8px 0;background:#0f3855}
 .search .row{flex:row nowrap;justify-content: space-between; align-items: center}
 .search .row > div{padding-left:15px;padding-right:15px}
 .search div{color: #617C8F}
 .search .RowsTitle .Title::before{content:'\f1b0';margin-right:10px}
 @media (max-width: 992px) {
 .search .Subject{display: none;}
 }
 @media (max-width: 576px) {
 .search .RowsTitle{display: none;}
 }
 |