Html 单选按钮的间距
单选按钮看起来很奇怪,我不知道为什么。这就是它看起来的样子: 我想要第三个,但我不知道怎么做 这是所有三个按钮的代码。我尝试使用Html 单选按钮的间距,html,radio-button,Html,Radio Button,单选按钮看起来很奇怪,我不知道为什么。这就是它看起来的样子: 我想要第三个,但我不知道怎么做 这是所有三个按钮的代码。我尝试使用标记,但没有成功 <td><input type="radio" id="examtype" name="examtype" value="GCSE" /> : GCSE<br /> <pr></pr> <td><inp
标记,但没有成功
<td><input type="radio"
id="examtype"
name="examtype"
value="GCSE" /> : GCSE<br />
<pr></pr>
<td><input type="radio"
id="examtype"
name="examtype"
value="A2" /> : A2<br />
<pr></pr>
<td><input type="radio"
id="examtype"
name="examtype"
value="AS"/> : AS<br />
<pr></pr>
</tr>
:GCSE
:A2
:AS
我不认为pr
是一个标签。。。我猜你是想输入tr
,或者br
,或者甚至可能是pre
(但这没有意义)。无论如何,使用正确的表
结构,元素可以整齐地内联放置,而不会出现任何像图片中那样的奇怪跳跃:
<table>
<tr>
<td>
<input type="radio" id="examtype" name="examtype" value="GCSE" />: GCSE
</td>
<td>
<input type="radio" id="examtype" name="examtype" value="A2" />: A2
</td>
<td>
<input type="radio" id="examtype" name="examtype" value="AS" />: AS
</td>
</tr>
</table>
:GCSE
:A2
:AS
标签已移除。你的问题与我能说的Java编程无关。最好用它来向我们展示你的实际代码。你的CSS看起来像什么?
标签到底是什么?你的td
标签没有关闭。谢谢你,它成功了,在我检查了两周的代码后终于成功了!