在header里面添加以下代码:
<link rel="search" type="application/opensearchdescription+xml" title="iKeepStudying" href="http://justcode.ikeepstudying.com/iks.xml" />
其中,标签“title”将会出现在图片中2的位置。
http://justcode.ikeepstudying.com/iks.xml 代码是
<?xml version="1.0" encoding="utf-8" ?>
<SearchPlugin xmlns="http://www.mozilla.org/2006/browser/search/">
<ShortName>Just Code</ShortName>
<Description>Just Code | iKeepStudying - Share Codes I Am Using or Studying
</Description>
<InputEncoding>UTF-8</InputEncoding>
<Image width="16" height="16">http://justcode.ikeepstudying.com/wp-content/uploads/favicon.ico</Image>
<Url type="text/html" method="GET" template="http://justcode.ikeepstudying.com/">
<Param name="s" value="{searchTerms}"/>
</Url>
<SearchForm>http://justcode.ikeepstudying.com</SearchForm>
</SearchPlugin>
内容一目了然,随便改改就可以了!
本文介绍如何在网站中配置自定义的Firefox搜索框,通过在header中加入特定代码实现搜索功能的集成。用户可以在浏览器的搜索栏直接使用该网站的搜索功能。

2249

被折叠的 条评论
为什么被折叠?



