html表单元素缺少哪些功能

发布于 2024-09-05 12:04:10 字数 140 浏览 4 评论 0原文

我只是想知道并想将我们喜爱的 html 表单元素的所有缺失功能集中到一个地方。
一个例子可能是列表框中缺少水平滚动条。但我确信默认情况下我们希望在表单元素中看到很多功能。
请每个答案缺少一个功能。
谢谢。

I just wondered and wanted to gather together in one place all missing features of our beloved html form elements.
One example could be missing of horizontal scrollbar in a listbox. But I am sure there are a lot of features we would like to see in our form elements by default.
One missing feature per answer please.
Thank you.

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

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

发布评论

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

评论(5

笑着哭最痛 2024-09-12 12:04:10

日期/时间选择器控件,而不是总是尝试操作文本框、选择器或其他一些控件来创建它们。

Date/Time picker controls, rather than always trying to manipulate a textbox, selects, or some other controls to create them.

小…红帽 2024-09-12 12:04:10

天哪,他们错过了这么多功能,我不知道从哪里开始!但这里是:

(HTML 4 中缺少,不知道 5)

  • 所有 元素的完全视觉可定制性(背景颜色、边框和文本颜色) (包括复选框、单选按钮和select元素)

  • 文本输入的本机输入验证(无需 JS):仅数字、仅字母字符、正则表达式

Hell, they miss so many features, I wouldn't know where to begin! But here goes:

(Missing in HTML 4, don't know about 5)

  • Full visual customizability (background colours, borders, and text colours) for all elements (including checkboxes, radio buttons, and select elements)

  • Native input validation (without needing JS) for text inputs: Numeric only, alphabetic characters only, regular expression

错爱 2024-09-12 12:04:10

在某些情况下,开放枚举、“可以输入的 SELECT”会很方便。

如果几乎每个人(但不是全部)都以 10 种或 15 种不同方式之一回答问题,那么您必须强制每个人都输入答案,或者使用带有单独文本字段的“其他”选项。

An open enumeration, a "SELECT you can type in" would be handy in some situations.

If pretty much everyone, but not quite, answers the question in one of ten or 15 different ways, you have to either force everyone to type in the answer or have an "other" option with a separate text field.

永不分离 2024-09-12 12:04:10

缺乏对多个窗口(甚至只是模式对话框)的内在支持是荒谬的

想一想,为了实现一个在桌面应用程序中非常简单的 UI,就浪费了数万程序员的时间来对 div 元素进行杂技操作。

The lack of intrinsic support for multiple windows (or even just modal dialogs) is ridiculous.

Think of the tens of thousands of programmer-hours wasted on acrobatic manipulation of div elements just to implement a UI that would be trivially easy in a desktop app.

空气里的味道 2024-09-12 12:04:10

列出 HTML 4 中缺少的内容有点毫无意义,因为 HTML 5 中已经修复了很多内容。然后,我们大多数人无法列出 HTML 5 中缺少的内容,因为我们对它还不够熟悉。

It's somewhat pointless to list what is missing in HTML 4 since so much has been fixed in HTML 5. And then, most of us can't list what is missing from HTML 5 because we are not familiar enough with it yet.

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