在XHTML中,我知道这对于选中的单选按钮是正确的:
<input type="radio" checked="checked" name="bar" value="baz" />
如果没有选中属性,则表示未选中该单选按钮:
<input type="radio" name="bar" value="baz" />
但这对未选中的单选按钮也是正确的吗:
<input type="radio" checked="" name="bar" value="baz" />
发布于 2012-11-28 23:25:37
不实际使用
<input type="radio" checked="" name="bar" value="baz" />
还会在我见过的浏览器中呈现选中的复选框(这看起来有多奇怪)!
https://stackoverflow.com/questions/13608364
复制相似问题