【问题标题】:Show search feature of our website in address bar while entering name of site在地址栏中显示我们网站的搜索功能,同时输入网站名称
【发布时间】:2014-02-17 09:11:48
【问题描述】:

如果在地址栏上键入 stackoverflow.com,浏览器(至少 google chrome 会)显示以下消息

Tab 搜索 Stack Overflow

我怎样才能在我的网站上做到这一点?非常感谢任何帮助...

【问题讨论】:

标签: html search address-bar


【解决方案1】:

对输入字段使用“tabindex”。你也可以设置标签顺序

例如:

<input name="name1" type="text"  tabindex="1"  />
<input name="name2" type="text"  tabindex="3"  />
<input name="name3" type="text"  tabindex="2"  />

所以如果你按tab键,顺序会是-->name1-->name3-->name2

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-01-11
    • 1970-01-01
    • 2016-10-29
    • 2015-09-24
    相关资源
    最近更新 更多