没有搜索框按钮可以吗?

发布于 2024-07-13 22:31:03 字数 427 浏览 4 评论 0 原文

我想知道网页中的搜索框附近是否可以不添加提交按钮(例如“确定”、“转到”或“搜索”)。

我知道按回车键要快得多并且它将执行搜索。

但是,这是普通非技术精通用户接受的约定还是仅适用于技术社区?

例如,stackoverflow 上的搜索框没有提交按钮,但我没有我认为有人在抱怨(我当然没有)。

另一方面,有人建议以谷歌为例:如果按钮被移除,人们会注意到吗?

我刚刚开始阅读别让我思考作者:Steve Krug,他提到每个搜索框都应该有一些内容告诉我可以单击它来启动搜索。

你的想法?

I was wondering if it was ever ok not to have a submit button (Ok, Go or Search for example) near a search box in Web pages.

I know that hitting enter is much faster and that it will perform the search.

However, is it an accepted convention for the average non tech savvy user or only for the tech community?

For example, the search box here at stackoverflow doesn't have a submit button, but I don't think anyone is complaining (and I sure don't).

On the other hand, someone suggested using Google as an example: would people notice if the buttons were removed?

I just started reading Don't Make Me Think by Steve Krug and he mentions that every search box should have something that tells me I can click on it to launch the search.

Your thoughts?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(9

唔猫 2024-07-20 22:31:04

我认为这取决于你的目标市场。 如果您是 StackOverflow,那么认为他们知道如何使用浏览器(使用浏览器上的后退按钮进行导航是一种类似的设计约定)并按 Enter = 提交进行搜索并不难。

然而,如果你的目标市场是不经常使用浏览器/计算机的机械师(无意冒犯机械师),那么看看谷歌是如何做到这一点的(他们的目标范围最广泛)——他们有一个提交按钮。

你可以考虑一个中间立场,它有一个像 StackOverflow 这样的水印,告诉用户“单击此处,输入搜索值并按 Enter 进行搜索” - 或者类似的东西(希望更短),你实际上是在为用户服务各个级别的。

I think it depends on your target market. If you are StackOverflow it's not too hard too think they know how to use a browser (using a back button on a browser to navigate is a similair design convention) and pressing Enter = submit for search.

However if your target market is say mechanics (no offence to mechanics) that don't use a browser/computer often then look at how Google does it (and they target the broadest scope) - they have a button to submit.

There is a middle ground you could look at, which is have a water mark like StackOverflow which tells users "Click here, type in search values and press enter to search" - or something like that (hopefully shorter) where you actually catering for users of all levels.

成熟的代价 2024-07-20 22:31:04

是否需要按钮取决于观众。 以下是需要考虑的问题:

  • 以技术为导向的用户可能不需要按钮,并且通常不必考虑按 Enter 来提交搜索请求。
  • 相反,非技术人员甚至可能不知道可以按 Enter 来提交搜索请求。 因此,再多的思考对他们来说也不起作用。
  • 可能存在需要按钮的技术限制。 如果您希望受众从不提供提交搜索请求的隐式方式的平台浏览您的表单,那么您可能需要提供显式按钮。

因此,本质上,您需要了解您的受众并确定边缘情况的所在以及它们的重要性。 以 SO 为例,它是针对技术用户的,因此可能不需要明确的按钮。 然而,对于像谷歌这样的网站,您需要使用每个可能的平台来访问每个用户,所以必须有一个清晰的明确搜索按钮。

Whether or not a button is required depends on the audience. Here are issues to consider:

  • Technically oriented users may not need a button and will usually not have to think about hitting enter to submit a search request.
  • Conversely non-technical people may not even know it is possible to hit enter to submit a search request. So no amount of thinking might work for them.
  • There may be technology limitations that require a button. If you expect your audience to be browsing your form from a platform that does not provide an implicit way to submit a search request then you may need to provide an explicit button.

So essentially you need to know your audiences and determine where the edge cases lie and how critical they are. Using SO as an example, it is directed at technical users so an explicit button probably isn't required. However for a site like google where you need to be accessible to every single user using every possible platform, a clear explicit search button is a must.

初心未许 2024-07-20 22:31:04

“别让我思考”——所以给我一个按钮。

总会有人第一次使用该应用程序; 也不让他们思考。 而且你的屏幕不应该太挑剔,以至于无法舒适地安装按钮 - 这将表明一系列不同的问题。

"Don't Make Me Think" - so gimme a button.

There will always be someone using the application for the first time; don't make them think either. And your screen shouldn't be so fussy that it is impossible to fit the button in comfortably - that would indicate a different set of problems.

小情绪 2024-07-20 22:31:04

我认为对于非技术人员来说,需要某种提交按钮。 想想那些不怎么使用电脑的人。 他们经常单击所需的所有按钮,而不是按 Enter 键,因为他们没有意识到 Enter 可以做同样的事情。 我的意见...如果它不是只适合技术人员,那么它应该尽可能简单。

I think for a non-tech person some sort of submit button is needed. Think about people who don't use computers very much. They often click all of the buttons needed instead of hitting enter because they don't realize enter does the same thing. My opinion...if it isn't for tech guys only then it should be as simple as possible.

ヅ她的身影、若隐若现 2024-07-20 22:31:04

这取决于你的观众。 史蒂夫的听众是所有人。 其中大部分距离 IT 很远,您需要望远镜才能看到它们。 如果您的听觉是单个用户,您可能会跳过所有线索:按钮(带或不带名称)、盒内标签。

对于我自己的登录窗口,我留下了两个字段:没有标签,没有按钮,没有 javascript 来告诉你哪个是哪个。 但这不是一个公共项目。

It depends on your audience. Steve's audience is everybody. Majority of which are so far from IT you'd need a telescope to see them. If your auditory is a single user, you might skip all clues: button (with or w/o names), in-box label.

For my own login window I leave two fields: no labels, no buttons, no javascript to tell you which one is which. But that's not a public project.

深爱不及久伴 2024-07-20 22:31:04

不久前,《Smashing》杂志上有一篇文章谈到了这一点。
有一些替代方案,例如镜子或其他图标,但基本上总是有一个按钮或代表它的东西。

A while ago there was an article on Smashing Magazine about this.
There were some alternatives like a looking glass or another icon, but basically there is always a button, or something which represents it.

捎一片雪花 2024-07-20 22:31:04

拥有按钮可以更清楚地表明文本字段是搜索字段。 仅让文本字段本身在其内容中指示这一点是不够的。

Having a button makes it clearer that the text field is a search field. Merely having the text field itself indicate this in its contents is unsufficient.

佼人 2024-07-20 22:31:04

虽然这个问题已经问了很多年了,但我觉得需要一个更新的答案,因为它仍然受到很多点击。
许多人已经提出了这样的观点:不懂技术的用户没有意识到按 Enter 来提交某项的功能,无论是搜索查询还是表单。

想到使用我们产品的人们的多样性真是太好了,因此我会将其扩展到患有永久性、暂时性或情境性残疾的人们。 这样我们就只剩下我们每一个人了。
考虑到可访问性的设计只有与可用性齐头并进才能使界面更易于使用。

据说,使用提交按钮作为提交表单的额外方式不会损害体验,并且可以满足许多不同情况的需求,例如使用语音识别并可以说“按搜索按钮”的人或屏幕阅读器用户谁听并清楚地理解按钮标签的功能

是的,根据 WCAG(网页内容可访问性指南),但它与其中许多指南相关,例如

  • 2.1.1:键盘(A 级)
  • 2.4.7:焦点可见(AA 级)
  • 3.3.2:标签或指示

Although it has been so many years since this question has been made, I feel there needs to be an updated answer to it since it' still getting many hits.
Many people have already raised the point of non tech-savy users not realising the functionality of pressing enter in order to submit sth whether it's a search query or a form.

It is great to think of the diversity of the people using our products and therefore I would expand this to people wit disabilites whether permanent, temporary or situational ones. That leaves us with every single one of us.
Designing with accessibility in mind can only make interfaces easier to use if it comes hand in hand with usability.

Have been said that having a submit button as an extra way of submitting a form doesn't harm the experience and accommodates the needs of many different cases eg, people who use speech recognition and can say "press search button" or a screen reader user who listens and understands clearly the functionality according to the button label

And yes, it may not be a mandatory feature according to WCAG (web content accessibility guidelines) but it is connected to many of them e.g.

  • 2.1.1: Keyboard (Level A)
  • 2.4.7: Focus Visible (Level AA)
  • 3.3.2: Labels or Instructions
巴黎盛开的樱花 2024-07-20 22:31:03

为什么你应该有一个按钮:

  • 并不是每个人都知道他们可以点击
    输入,这样你就少留下一些
    精明的人在寒冷中。
  • 某些设备(例如手机和游戏机)可能无法在没有按钮的情况下提交。 基于 PC 的浏览器仍然占主导地位,但不要认为这是人们访问您的网站的唯一方式。

如果(必须满足两个条件),您可能没有按钮:

  • 您的受众精通技术(如 SO)
  • 您提供了一个视觉提示,表明搜索框实际上是一个搜索框
    • 通过在其中添加文本来提及它应该用于搜索
    • 通过在框中添加图标

一般来说,我认为按 Enter 是提交的快捷方式,而不是主要手段。

Why you should have a button:

  • Not everyone knows they can hit
    enter, so you are leaving some less
    savvy people out in the cold.
  • Some devices like phones and consoles may not have a way to submit without a button. The PC based browser is still dominant but don't assume it is the only way people access your site.

You may not have a button if (both conditions must be satisfied):

  • Your audience is tech savvy (as on SO)
  • You provide a visual cue that the search box actually is a search box
    • By adding text inside it mentioning it should be used to search
    • By adding an icon inside the box

Generally I would think that hitting enter is a shortcut to submit rather than the primary means.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文