易语言资源网
易语言资源网 - 专注易语言资源分享,易语言资源网为你提供易语言源码下载,易语言模块下载,易语言支持库下载,同时提供丰富的功能,在线预览模块命令,高级搜索易语言相关资源。
.mini_header {
display: none;
}
@media screen and (max-device-width: 860px) {
.header-main{
min-height: 80px;
}
#menu{
display: none!important;
}
.hotkw,.header-main .search {
display: none !important;
opacity: 0;
}
.header-logo {
width: 100% !important;
}
.mini_header {
display: block;
margin-top: 10px!important;
height: 35px!important;
width: 90%;
margin-left: 4%;
}
.header-logo{
overflow: visible!important;
}
.header-logo img{
position: relative;
top: 5px;
}
.mini_header .search{
display: flex;
}
.mini_header .search button{
margin-left:0;
}
.header-right .search input{
width: 245px!important;
}
}
<div class="header">
<div class="top">
<div class="top_content">
<div class="top_left">
<span>鏄撹瑷€璧勬簮缃 - 鍋氭渶鍏ㄧ殑鏄撹瑷€璧勬簮涓嬭浇绀惧尯</span>
</div>
<!-- 骞垮憡 -->
<a style="position:absolute;left:330px;color:" href="" target="_blank">
</a>
<a style="position:absolute;right:160px" href="/logging_auth.html">绮炬槗璁哄潧鎺堟潈鐧诲綍</a>
<div id="vlogif" style="position:absolute;left:0;top:0;width:100%;height:30px;color:red;background:white;font-size:20px;text-align:right;font-weight:bold">
<span id="vlogin"></span> <a href="vlogout()" style="color: gray;font-size: 14px;margin-left: 10px">閫€鍑虹櫥褰旤/a>
</div>
function setCookie(name,value,days) {
var expires = "";
if (days) {
var date = new Date();
date.setTime(date.getTime() + (days*24*60*60*1000));
expires = "; expires=" + date.toUTCString();
}
document.cookie = name + "=" + (value || "") + expires + "; path=/";
}
function getCookie(name) {
var nameEQ = name + "=";
var ca = document.cookie.split(';');
for(var i=0;i < ca.length;i++) {
var c = ca[i];
while (c.charAt(0)==' ') c = c.substring(1,c.length);
if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
}
return null;
}
function eraseCookie(name) {
document.cookie = name+'=; Max-Age=-99999999;';
}
if (getCookie('v_islogin')) {
document.getElementById('vlogin').innerText = '灏婃暚鐨勮吹瀹撅紝娆㈣繋鎮細' + getCookie('v_islogin')
document.getElementById('vlogif').style.display = 'block'
}
function vlogout() {
$.post('/?a=logout',{'submit':1,'formhash':'5d670320'},function(res){});
//setCookie('xtusername','');
eraseCookie('v_islogin')
eraseCookie('xtusername')
alert('鎮ㄥ凡鎴愬姛閫€鍑猴紒')
location.reload(true)
}
<div class="top_right">
<span>
<i class="tougao"></i>
<a href="https://bbs.125.la/forum-98-1.html" target="_blank">鎴戣鍒嗕韩鍐呭</a>
</span>
</div>
</div>
</div>
<div class="header-main wrap">
<div id="menu">
<div class="dh">
<span><i class="fa fa-bars fa-lg"></i></span>
</div>
<div id="dakaimenu">
<div class="navmenu_header">
<div class="navmenu_header_left">
<div class="dh">
<span><i class="fa fa-times fa-lg"></i></span>
</div>
</div>
<div class="navmenu_header_center">
<div class="logo">
<a href="/index.php"><img src="/source/plugin/ziyuan/template/images/logo.png" alt="" /></a>
</div>
</div>
<div class="navmenu_header_right">
<div class="navmenu_search">
</div>
</div>
</div>
</div>
</div>
<div class="header-logo left">
<a href="/"><img src="/source/plugin/ziyuan/template/images/logo.png"></a>
</div>
<div class="header-right right">
<div class="search">
<div class="category">
鍏ㄩ儴
鏄撹瑷€婧愮爜
鏄撹瑷€妯″潡
鏄撹瑷€鏀寔搴掽/option>
鏄撶浉鍏宠祫婧忺/option>
鏄撶浉鍏宠祫鏂橖/option>
寮€婧愬ぇ璧汓/option>
鐏北鐩稿叧璧勬簮
鍏朵粬璧勬簮
</div>
$('#search-category').val('0')
<button name="button"><i class="fa fa-search"></i> 鎼滅储</button>
</div>
<div class="hotkw">
<a href="/?a=search&kw=绮炬槗妯″潡" target="_blank">绮炬槗妯″潡</a>
<a href="/?a=search&kw=鑷粯" target="_blank">鑷粯</a>
<a href="/?a=search&kw=鐣岄潰缇庡寲" target="_blank">鐣岄潰缇庡寲</a>
<a href="/?a=search&kw=姹囩紪" target="_blank">姹囩紪</a>
<a href="/?a=search&kw=POST" target="_blank">POST</a>
<a href="/?a=search&kw=API" target="_blank">API</a>
<a href="/?a=search&kw=鏄撹瑷€鍔╂墜" target="_blank">鏄撹瑷€鍔╂墜</a>
<a href="/search.html" target="_blank" style="color:blue;float:right;margin-right: 5px">楂樼骇鎼滅储</a>
</div>
</div>
</div>
<div class="header-nav">
<div id="nav">
<div class="nav_content">
<ul class="nav_list">
<li>
<a href="/" class="nav-item nav-item-2 current">棣栭〉</a>
</li>
<!-- <li>
<a href="https://bbs.125.la" class="nav-item nav-item-2 current" target="_blank">绮炬槗璁哄潧</a>
</li> -->
<!-- <li class="tb-item">
<a href="/cate/?html" class="item-link item-link-2">妩/a>
</li> -->
<div class="tb-item dm">
<a href="/cate/13.html" class="item-link item-link-2">鏄撹瑷€婧愮爜</a>
<div id="dy" class="menu feed">
<ul class="mn_con">
<li><a href="/cate/1.html">鍏ラ棬鏁欑▼婧愮爜</a></li>
<li><a href="/cate/2.html">鍒濈骇鏁欑▼婧愮爜</a></li>
<li><a href="/cate/3.html">杩涢樁鏁欑▼婧愮爜</a></li>
<li><a href="/cate/4.html">楂樼骇鏁欑▼婧愮爜</a></li>
<li><a href="/cate/5.html">绯荤粺宸ュ叿婧愮爜</a></li>
<li><a href="/cate/6.html">鍥惧舰鍥惧儚婧愮爜</a></li>
<li><a href="/cate/7.html">澶氬獟浣撶被婧愮爜</a></li>
<li><a href="/cate/8.html">娓告垙濞变箰婧愮爜</a></li>
<li><a href="/cate/9.html">鏁版嵁搴撶被婧愮爜</a></li>
<li><a href="/cate/10.html">妯″潡鎺т欢婧愮爜</a></li>
<li><a href="/cate/11.html">琛屼笟杞欢婧愮爜</a></li>
<li><a href="/cate/12.html">缃戠粶鐩稿叧婧愮爜</a></li>
<li><a href="/cate/18.html">鐣岄潰缇庡寲婧愮爜</a></li>
</ul>
</div>
</div>
<div class="tb-item dm">
<a href="/cate/14.html" class="item-link item-link-2">鏄撹瑷€妯″潡</a>
<div id="dy" class="menu feed">
<ul class="mn_con">
</ul>
</div>
</div>
<div class="tb-item dm">
<a href="/cate/15.html" class="item-link item-link-2">鏄撹瑷€鏀寔搴掽/a>
<div id="dy" class="menu feed">
<ul class="mn_con">
<li><a href="/cate/19.html">鏄撳畼鏂规敮鎸佸簱</a></li>
<li><a href="/cate/20.html">绗笁鏂规敮鎸佸簱</a></li>
<li><a href="/cate/21.html">OCX鎺т欢搴掽/a></li>
<li><a href="/cate/22.html">杈呭姪绫绘敮鎸佸簱</a></li>
<li><a href="/cate/53.html">鏀寔2017link鐨勬敼閫犲簱</a></li>
</ul>
</div>
</div>
<div class="tb-item dm">
<a href="/cate/16.html" class="item-link item-link-2">鏄撶浉鍏宠祫婧忺/a>
<div id="dy" class="menu feed">
<ul class="mn_con">
<li><a href="/cate/25.html">鏄撹瑷€鐗堟湰涓嬭浇</a></li>
<li><a href="/cate/26.html">鏄撹瑷€閰嶈壊鏂规</a></li>
<li><a href="/cate/27.html">缂栫▼杈呭姪宸ュ叿</a></li>
<li><a href="/cate/28.html">缂栬瘧閾炬帴鍣?/a></li>
</ul>
</div>
</div>
<div class="tb-item dm">
<a href="/cate/17.html" class="item-link item-link-2">鏄撶浉鍏宠祫鏂橖/a>
<div id="dy" class="menu feed">
<ul class="mn_con">
<li><a href="/cate/23.html">鐢靛瓙涔︾被</a></li>
<li><a href="/cate/24.html">鍥炬枃璧勬枡</a></li>
</ul>
</div>
</div>
<div class="tb-item dm">
<a href="/cate/29.html" class="item-link item-link-2">寮€婧愬ぇ璧汓/a>
<div id="dy" class="menu feed">
<ul class="mn_con">
<li><a href="/cate/30.html">2016寮€婧愬ぇ璧?绗竴灞?</a></li>
<li><a href="/cate/31.html">2017寮€婧愬ぇ璧?绗簩灞?</a></li>
<li><a href="/cate/32.html">2018寮€婧愬ぇ璧?绗笁灞?</a></li>
<li><a href="/cate/33.html">2019寮€婧愬ぇ璧?绗洓灞?</a></li>
<li><a href="/cate/41.html">2020寮€婧愬ぇ璧?绗簲灞?</a></li>
<li><a href="/cate/48.html">2021寮€婧愬ぇ璧?绗叚灞?</a></li>
<li><a href="/cate/51.html">2022寮€婧愬ぇ璧?绗竷灞?</a></li>
</ul>
</div>
</div>
<div class="tb-item dm">
<a href="/cate/34.html" class="item-link item-link-2">鐏北鐩稿叧璧勬簮</a>
<div id="dy" class="menu feed">
<ul class="mn_con">
<li><a href="/cate/35.html">鐏北鐗堟湰涓嬭浇</a></li>
<li><a href="/cate/36.html">鐏北瀹夊崜婧愮爜</a></li>
<li><a href="/cate/37.html">鐏北PC婧愮爜</a></li>
</ul>
</div>
</div>
<div class="tb-item dm">
<a href="/cate/38.html" class="item-link item-link-2">鍏朵粬璧勬簮</a>
<div id="dy" class="menu feed">
<ul class="mn_con">
<li><a href="/cate/42.html">JavaScript</a></li>
<li><a href="/cate/43.html">PHP</a></li>
<li><a href="/cate/44.html">C++</a></li>
<li><a href="/cate/45.html">HTML</a></li>
<li><a href="/cate/46.html">uni-app</a></li>
<li><a href="/cate/47.html">Java</a></li>
<li><a href="/cate/49.html">Golang</a></li>
<li><a href="/cate/50.html">C#</a></li>
<li><a href="/cate/52.html">Delphi </a></li>
</ul>
</div>
</div>
</ul>
<!-- <div class="search-btn">
<i class="fa fa-search"></i>
</div> -->
</div>
</div>
<!-- <div class="search-layer">
</div> -->
</div>
</div>
<div class="mini_header header-right">
<div class="search">
<div class="category">
鍏ㄩ儴
鏄撹瑷€婧愮爜
鏄撹瑷€妯″潡
鏄撹瑷€鏀寔搴掽/option>
鏄撶浉鍏宠祫婧忺/option>
鏄撶浉鍏宠祫鏂橖/option>
寮€婧愬ぇ璧汓/option>
鐏北鐩稿叧璧勬簮
鍏朵粬璧勬簮
</div>
$('#search-category').val('0')
<button name="mini_button"><i class="fa fa-search"></i></button>
</div>
</div>
if (!String.prototype.trim) {
String.prototype.trim = function () {
return this.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, '');
}
}
$('.search-btn').click(function () {
$('.search-layer').show();
$('#keyword').focus();
$('<div id="overlay"></div>').appendTo(document.body).click(function () {
$('.search-layer').hide();
$(this).remove();
})
})
function ohMySearch() {
if (!$('#keyword').val().trim()) {
alert('鎼滅储鍐呭涓嶈兘涓虹┖');
return;
}
location.href = '/?a=search&kw=' + encodeURIComponent($('#keyword').val().trim()) +
"&scate=" + $('#search-category').val() +
"&noec=0&onlycore=0&onlylic=0";
}
$('.search button[name=button]').click(ohMySearch);
$('.search button[name=mini_button]').click(function () {
if (!$('#mini_keyword').val().trim()) {
alert('鎼滅储鍐呭涓嶈兘涓虹┖');
return;
}
$('#keyword').val($('#mini_keyword').val());
$('.search button[name=button]').click();
});
$('.search input').keypress(function (e) {
if (e.which == 13) {
ohMySearch();
}
})
<title>鏄撹瑷€璧勬簮缃 - 涓撴敞鏄撹瑷€璧勬簮鍒嗕韩