opensearch自动发现链接未显示

时间:2018-12-12 06:18:43

标签: php html google-chrome opensearch

我尝试在我的head标签中添加link标签

 <link rel="search" href="/opensearchdescription.xml" type="application/opensearchdescription+xml" title="aaden001.cs518.cs.odu.edu" />

我还在根目录中创建了opensearchdescription.xml,它看起来像这样

<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/">
<ShortName>aaden001.cs</ShortName>
<Description>Use Google to search aaden001.cs</Description>
<Tags>aaden001.cs.odu.edu</Tags>
<Url type="text/html" template="http://aaden001.cs518.cs.odu.edu/?q= {searchTerms}"/>
</OpenSearchDescription>

但是我没有在我的网站上找到opensearch框。任何帮助都会有帮助

0 个答案:

没有答案