Firefox 单选按钮怪异 [英] Firefox Radio Button Weirdness

查看:20
本文介绍了Firefox 单选按钮怪异的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个包含很多收音机组的表格.每个无线电都有一个唯一的 ID,并且与组中的其他无线电具有相同的名称.该页面验证为 XHTML 过渡.

I have a form with a lot of groups of radios. Each radio has a unique id and has the same name as the others in its group. The page validates as XHTML transitional.

在 IE6 &7、Opera、Safari 和 Chrome 它的工作方式与您通过鼠标或键盘输入所想的完全一样.

Tested in IE6 & 7, Opera, Safari, and Chrome it works exactly as you would think it would from either mouse or keyboard input.

在 FireFox 中它变得疯狂.单击组中的任何无线电会设置检查组中的第一个无线电.双击收音机通常会选择它.有人见过这个吗?

In FireFox it goes crazy. A single click on any radio in a group sets the first radio in the group checked. A double click on a radio usually selects it. Anyone seen this before?

样本组如下所示:

<input type="radio" name="upAndDown_1" id="upAndDown_11" value="Y"  /> Y <br />
<input type="radio" name="upAndDown_1" id="upAndDown_12" value="N"  checked="checked" /> N<br />
<input type="radio" name="upAndDown_1" id="upAndDown_13" value="NA"  /> NA

phonmomenon 可以在这里测试:http://www.nolaflash.com/stackoverflow/firefox_and_radios.html

The phonmomenon can be tested here: http://www.nolaflash.com/stackoverflow/firefox_and_radios.html

任何建议表示赞赏.

推荐答案

Doh!我的设计师用一个标签包裹着每组收音机.消除标签标签修复了 FireFox 的怪异之处.

Doh! My designer had a single tag wrapping each group of radios. Eliminating the label tag fixes FireFox's weirdness.

这篇关于Firefox 单选按钮怪异的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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