网站搜索排版代码

前台
说明文档 13690 65万+
admin
admin VIP 2019-10-01 00:45
性别:男生
电脑页面

<div class="fly-panel">
<div class="fly-panel-main" style="height: 38px;">
<form method="GET" class="layui-form" action="{if $static_state}forum-search-1.html{else}index.php?m=forum&mod=search&{/if}" >
<div class="layui-form-item">
<div style="margin-right: 10px;float:left;width: 50%;">
{if !$static_state }<input type="hidden" name="m" value="forum"><input type="hidden" name="mod" value="search">{/if}
<input type="text" name="s" placeholder="请输入搜索关键字" class="layui-input">
</div>
<button type="submit" class="layui-btn layui-btn-position" style="text-align: left;"><i class="layui-icon layui-icon-search"></i></button>
<m> <d style="color: #a9a9a9;">热搜:</d>
  <a href="index.php?m=forum&mod=search&s=槟榔3">槟榔3</a>  
   <a href="index.php?m=forum&mod=search&s=排版">排版</a>  
   <a href="index.php?m=forum&mod=search&s=帮助">帮助</a>  
   <a href="index.php?m=forum&mod=search&s=伪静态">伪静态</a>  
</m>
</div>
</form>
</div>
</div>

手机页面

<div class="fly-panel">
<div class="fly-panel-main" style="height: 76px;">
<form method="GET" class="layui-form" action="{if $static_state}forum-search-1.html{else}index.php?m=forum&mod=search&{/if}" >
<div class="layui-form-item">
<div style="margin-right: 10px;float:left;width: 78%;">
{if !$static_state }<input type="hidden" name="m" value="forum"><input type="hidden" name="mod" value="search">{/if}
<input type="text" name="s" placeholder="请输入搜索关键字" class="layui-input">
</div>
<button type="submit" class="layui-btn layui-btn-position" style="text-align: left;"><i class="layui-icon layui-icon-search"></i></button>
<br/><br/>
<p ><d style="color: #a9a9a9;">热搜:</d>
  <a href="index.php?m=forum&mod=search&s=手机">手机</a>  
  <a href="index.php?m=forum&mod=search&s=美女">美女</a>  
  <a href="index.php?m=forum&mod=search&s=槟榔3">槟榔3</a>  
  <a href="index.php?m=forum&mod=search&s=排版">排版</a>  
  <a href="index.php?m=forum&mod=search&s=帮助">帮助</a>  
</p>
</div>
</form>
</div>
</div>
最后编辑 2020-10-25 15:56
[ 感谢您的赏脸阅读 ]
还没有打赏的人,快来当第一吧!
评论