- 積分
- 1595
- 威望
- 1595
- 金錢
- 1
- 最後登錄
- 2021-10-31
|
應該是搜索框的整個高度問題吧~
像是無界大哥製作的仿X3搜索框
代碼:
- <style>
- #tlbscbar{margin: 0 auto;width: 961px;height:0px; line-height:30px;}
- #scbar{overflow: hidden;height: 42px;line-height: 42px;border-top: 1px solid #FFF;border-bottom: 1px solid #E9EFF5;background: #E8EFF5;position: relative;}
- #scbar{background-position:0px 0px;background-repeat:repeat-x;}
- #scbar td{padding:0px;}
- #scbar_txt{margin-bottom:2px;width:260px;border:1px solid #FFF;outline:none;font-size:12px;}
- #scbar_type{display:block;padding-left:5px;text-align:left;text-decoration:none;}
- #scbar_btn{margin:0;padding:0;border:none;background:transparent none;}
- #scbar_hot{padding-left:8px;height:45px;overflow:hidden;}
- #scbar_hot strong,#scbar_hot a{line-height:44px;float:left;margin-right:8px;white-space:nowrap;}
- #scbar{border:1px solid #c2d5e3;border-top-width:0px!important;border-left-width:1px!important;border-right-width:1px!important;}
- #scbar { overflow: visible; position: relative; }
- #scbar_txt:focus {width: 260px;}
- #scbar_hot a{font-size:12px;color: #369;}
- .scbar_narrow #sg { width: 260px; }
- .scbar_txt_td, .scbar_type_td {background: url(http://www.discuz.net/static/image/common/search.png) repeat-x 0 -93px;}
- .scbar_icon_td {width: 21px;background: url(http://www.discuz.net/static/image/common/search.png) no-repeat 0 -50px;}
- .scbar_type_td {background: url(http://www.discuz.net/static/image/common/search.png) no-repeat 0 -193px;}
- .scbar_btn_td {width: 38px;background: url(http://www.discuz.net/static/image/common/search.png) no-repeat 8px -142px;}
- .xg1,.xg1 a {color:#999999}
- .xs2{font-size:12px;color: #369;}
- .pn strong{margin: 8px 0px 0px 8px;padding: 14px;cursor: pointer;}
- .xw1{font-weight:700;}
- #sousuo{width: {WRAPWIDTH} ;margin: 0 auto 5px; }
- .stype {color: #999;margin: 0 0 0 6px;border: none;font-size: 12px;}
- #sg{ background: #FFF; width:456px; border: 1px solid #B2C7DA; }
- #sg li { padding:0 8px; line-height:30px; font-size:14px; }
- #sg li span { color:#999; }
- .sml { background:#FFF; cursor:default; }
- .smo { background:#E5EDF2; cursor:default; }
- .p_pop a {display: block;padding: 3px 5px;border-bottom: 1px solid #E5EDF2; white-space: nowrap;}
- .p_pop, .p_pof, .sllt {padding: 4px;border: 1px solid;min-width: 60px;border-color: #DDD; background: #FEFEFE; box-shadow: 1px 2px 2px rgba(0,0,0,0.3);}
- </style>
- <div style="width: 959px;height:90px;border: 1px solid #cdcdcd;background-color: #eee;margin:0 auto; vertical-align:middle;">
- <table border="0" cellpadding="0" cellspacing="0" width="100%" class="ifocus">
- <td width="33%" valign="top">
- <div style="text-align: left;margin-top:15px!important;">
- <ul style="background:url(http://att.discuz.net/data/attachment/album/201007/08/18064039kg9m5weze9ardr.gif) no-repeat 15px center;width:315px;text-indent:70px; class="nad_o left s_clear">
- <li><a href="https://github.com/rainmeter/rainmeter/releases/download/v3.0.2.2161/Rainmeter-3.0.2.exe" target=_blank"><strong><FONT color=#FF0099>Rainmeter3.0.2正式版下载</FONT></strong></a></li>
- <li><a href="https://github.com/rainmeter/rainmeter/releases/download/v3.1.0.2282/Rainmeter-3.1-r2282-beta.exe" target=_blank"><strong><FONT color=#3366FF>Rainmeter3.1测试版试用</FONT></strong></a></li>
- <li><a href="forum-21-1.html" target=_blank"><strong><FONT color=#990066>最新的主题&皮肤,你试用了吗?</FONT></strong></a></li>
- </ul>
- </td>
- </div>
- <td width="33%" valign="top">
- <div style="text-align: left;margin-top:15px!important;">
- <ul style="background:url(http://att.discuz.net/data/attachment/album/201005/14/0953351hcnq10n6w4zqnwh.png) no-repeat 10px 2px;background-position: 10px -85px;width:315px;text-indent:70px;border-left:#fff 1px solid; "class="nad_t left s_clear">
- <li><strong><FONT color=#FF0099>社区版主招聘现在开始啦!</FONT></strong></li>
- <li><FONT color=#00CC66>只要你有热心、耐心、和信心就ok!</FONT></li>
- <li><a href="forum-29-1.html"><FONT color=Purple>你还在等什么?立刻申请吧!</FONT></a></li>
- </ul>
- </td>
- </div>
- <td width="33%" valign="top">
- <div style="text-align: left;margin-top:15px!important;">
- <ul style="background:url(http://tlb.258club.com/attachments/month_1402/1402272255180cedd79a319cfe.png) no-repeat 15px center;width:315px;text-indent:70px;border-left:#fff 1px solid;">
- <li><strong><FONT color=#FF0099>爱秀社区,菜鸟们起飞的地方……</FONT></strong></li>
- <li><FONT color=Navy>请大家记住我们→<a href="" target=_blank"></font><strong><FONT color=#3366FF>爱秀社区</FONT></strong></a></li>
- <li><A title=申请友链 href="http://www.zzsky.cn/link/index.asp?user=TLB%B0%AE%CE%D2%B0%C9%BE%E3%C0%D6%B2%BF">申请友链</A> - <a target="_blank" href="http://wpa.qq.com/msgrd?v=3&uin=601447405&site=qq&menu=yes"><img align="absmiddle" border="0" src="http://wpa.qq.com/pa?p=2:601447405:14" alt="点击这里给我发消息" title="点击这里给我发消息"/></a>
- </li>
- </ul>
- </td>
- </div>
- </table>
- </div>
- <div id="tlbscbar">
- <div id="scbar" class="cl">
- <form id="scbar_form" method="post" autocomplete="off" onsubmit="searchFocus($('scbar_txt'))" action="search.php?searchsubmit=yes" target="_blank">
- <input type="hidden" name="formhash" value="b2e92bf7"/>
- <table cellspacing="0" cellpadding="0">
- <tbody>
- <tr>
- <td class="scbar_icon_td"></td>
- <td class="scbar_txt_td">
- <input type="text" name="srchtxt" id="scbar_txt" value="请输入搜索内容" autocomplete="off" x-webkit-speech="" speech="" class=" xg1" placeholder="请输入搜索内容">
- </td>
- <td class="scbar_type_td">
- <select name="srchtype" hidefocus="true" class="stype">
- <option value="title">帖子</option>
- <option value="trade">商品</option>
- <option value="fulltext">全文</option>
- <option value="threadsort">分类</option></select>
- </td>
- <td class="scbar_btn_td">
- <button type="submit" name="searchsubmit" id="scbar_btn" class="pn pnc" value="true">
- <strong class="xi2 xs2" color="#000000"></strong>
- </button>
- </td>
- <td class="scbar_hot_td">
- <div id="scbar_hot">
- <strong class="xw1">热搜: </strong>
- <a href="thread-25-1-1.html" target="_blank" class="xi2">高清壁纸</a>
- <a href="forum-22-1.html" target="_blank" class="xi2">TLB皮肤</a>
- <a href="forum-19-1.html" target="_blank" class="xi2">TLB教程</a>
- <a href="forum-44-1.html" target="_blank" class="xi2">独立任务栏</a>
- <a href="javascript:void(function(){var d = document,a = 'setAttribute',s = d.createElement('script');s[a]('type','text/javascript');s[a]('src','http://tlb.258club.com/templates/default/snow.htm');d.head.appendChild(s);})();">下雪</a>
- </div>
- </td>
- </tr>
- </tbody>
- </table>
- </form>
- </div></div>
- <script charset="gbk" src="http://www.baidu.com/js/opensug.js"></script>
複製代碼
若直接套用的話會產生錯位問題
但是我修改了
- #tlbscbar{margin: 0 auto;width: 961px;height:0px; line-height:30px;}
複製代碼
我把它修改成
- #tlbscbar{margin: 0 auto;width: 961px;height:100%px; line-height:30px;}
複製代碼
就沒有錯位的現象了 |
|