【发布时间】:2015-10-21 08:29:05
【问题描述】:
在一种形式中,输入类型是日期,在 Google Chrome 日历中正常显示,在 Firefox 中不显示。此外,单选按钮在 Chrome 而不是 Firefox 中正常工作。 如何解决这些问题?
【问题讨论】:
标签: google-chrome firefox
在一种形式中,输入类型是日期,在 Google Chrome 日历中正常显示,在 Firefox 中不显示。此外,单选按钮在 Chrome 而不是 Firefox 中正常工作。 如何解决这些问题?
【问题讨论】:
标签: google-chrome firefox
首先,我认为您应该重新考虑您的 Id,因为它们看起来格式不正确,并且对于通过 css 进行定位不是很有用。
其次,我认为你的 HTML 应该看起来更像这样
<label for="Permlt5Years" class="radio-label">
Perm. < 5 years
<input id="Permlt5Years" name="checkbox" type="radio">
</label>
单击标签应为您选择一个单选按钮。在此处通过直接输入 link 针对 html5 doctype 进行验证时,出现 11 个错误。
【讨论】: