Firefox搜索框:自动出现添加搜索的提示

Snip20150601_13

在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搜索框:自动出现添加搜索的提示

Loading

Add a Comment

Your email address will not be published. Required fields are marked *

Time limit is exhausted. Please reload CAPTCHA.