㈠ 淘寶搜索框自定義代碼
<!--
·1此代碼默認尺寸200x30像素(文本框:170x30像素;提交按鈕:30x30像素);
·2代碼僅為框架,可通過使用內聯樣式添加背景圖片實現效果;
·3如需使用border屬性添加邊框,請勿刪除之前的border樣式,並且要減去相應的高寬數值
-->
<!--搜索代碼-->
<formaction="#店鋪搜索頁鏈接"method="get"target="_blank"style="width:200px;height:30px;border:0;padding:0;outline:none;">
<!--搜索按鈕-->
<inputname="search"type="submit"value=""style="width:30px;height:30px;background-color:#C9C9C9;border:0;padding:0;outline:none;cursor:pointer;float:right;">
<!--搜索按鈕End-->
<!--文本輸入-->
<inputname="keyword"type="text"value=""style="width:170px;height:30px;background-color:#E5E5E5;border:0;padding:0;outline:none;text-indent:5px;cursor:text;float:left;">
<!--文本輸入End-->
</form>
<!--搜索代碼End-->
回答中無法添加具體鏈接,代碼中 「#店鋪搜索頁鏈接」即為打開店鋪搜索頁,地址欄內的地址鏈接,可只保留到search.htm位置
具體操作可讀注釋,更多問題可追問或私信
具體效果可搜索瀏覽 「盈兆電器專營店」
滿意請隨手 點贊 支持 (๑•̀ㅂ•́)و✧