jQuery下拉美化搜尋表單效果代碼分享_jquery

來源:互聯網
上載者:User

本文執行個體講述了jQuery下拉美化搜尋表單效果。分享給大家供大家參考。具體如下:
JQuery下拉美化搜尋表單樣式代碼是一款美化下拉框的表單,樣式已寫好,需要的朋友改一下就可以用了。
運行效果圖:-------------------查看效果-------------------

小提示:瀏覽器中如果不能正常運行,可以嘗試切換瀏覽模式。
為大家分享的jQuery下拉美化搜尋表單效果代碼如下

<head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>jQuery下拉美化搜尋表單樣式代碼</title><link href="css/base.css" type="text/css" rel="stylesheet" /><style type="text/css">/* search */.search{border:2px solid #f58400;height:35px;margin:40px auto 0 auto;width:525px;}.search select{display:none;}.search .select_box{font-size:12px;color:#999999;width:100px;line-height:35px;float:left;position:relative;}.search .select_showbox{height:35px;background:url(images/search_ico.png) no-repeat 80px center;text-indent:1.5em;}.search .select_showbox.active{background:url(images/search_ico_hover.png) no-repeat 80px center;}.search .select_option{border:2px solid #f58400;border-top:none;display:none;left:-2px;top:35px;position:absolute;z-index:99;background:#fff;}.search .select_option li{text-indent:1.5em;width:90px;cursor:pointer;}.search .select_option li.selected{background-color:#F3F3F3;color:#999;}.search .select_option li.hover{background:#BEBEBE;color:#fff;}.search input.inp_srh,.search input.btn_srh{border:none;background:none;height:35px;line-height:35px;float:left}.search input.inp_srh{outline:none;width:365px;}.search input.btn_srh{background:#f58400;color:#FFF;font-family:"微軟雅黑";font-size:15px;width:60px;}</style></head><body><div class="search radius6"> <form name="searchform" method="post" action="/e/search/index.php"> <input name='ecmsfrom' type='hidden' value='9'> <input type="hidden" name="show" value="title,newstext"> <select name="classid" id="choose">  <option value="0">搜尋全部</option>  <option value="1">新聞中心</option>  <option value="4">技術文檔</option>  <option value="22">下載中心</option> </select>  <input class="inp_srh" name="keyboard" placeholder="請輸入您要搜尋的作品" > <input class="btn_srh" type="submit" name="submit" value="搜尋"> </form></div><script type="text/javascript" src="js/jquery-1.8.3.min.js"></script><script type="text/javascript" src="js/jquery.select.js"></script><div style="text-align:center;margin:50px 0; font:normal 14px/24px 'MicroSoft YaHei';"></div></body></html>

以上就是為大家分享的jQuery下拉美化搜尋表單樣式代碼,希望大家可以喜歡。

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.