在 Web 表单上突出显示必填字段的最佳方法是什么? [英] What's the best way to highlight a required field on a web form?

查看:32
本文介绍了在 Web 表单上突出显示必填字段的最佳方法是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我觉得经常使用的*"不是很好看 - 谁能建议一个更好看的方法或给我举个例子?

I don't find the oft-used "*" to be very nice looking - can anyone suggest a nicer-looking method or point me to an example?

我尝试按照某人的建议将字段以红色突出显示,但我不喜欢这种外观.

I tried making the field highlighted in red as one person suggested but I did not like the look.

粗体标签可能会起作用.

Bold labels might do the trick.

但我真的很喜欢在添加文本之前在字段中以灰色显示必需"的想法.有人有这方面的代码吗?

But I really like the idea of "Required" being shown in grey in the field until text is added. Does anyone have code for this?

推荐答案

一般来说,最好的 Web 表单是最简单的表单,需要我最少思考.演变的标准"是必填字段旁边有一个星号 (*).有时星号是红色的,以帮助它突出一点.

Generally speaking, the best web forms are the simplest ones that require me to think the least. The "standard" that has evolved is that required fields have an asterisk (*) next to them. Sometimes the asterisk is red to help it stand out a bit.

为什么要打标准?不要让你的用户想太多.遵循标准,为更重要的事情保留您的创造力.

Why fight the standard? Don't make your users think too much. Go with the standard and keep your creativity for more important things.

这篇关于在 Web 表单上突出显示必填字段的最佳方法是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆