Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/78.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Html 如何在表格单元格中水平放置按钮?_Html_Css - Fatal编程技术网

Html 如何在表格单元格中水平放置按钮?

Html 如何在表格单元格中水平放置按钮?,html,css,Html,Css,如何在表格单元格中水平放置按钮 设置单选按钮样式后,它们移出并开始垂直放置 <tr> <td> <label>Выпускник <a href="http:\\www.htmlacademy.ru">htmlacademy.ru</a> <input type="radio" name="haru" id="c1" value="yes" checked/>

如何在表格单元格中水平放置按钮

设置单选按钮样式后,它们移出并开始垂直放置

<tr>
    <td>
        <label>Выпускник <a href="http:\\www.htmlacademy.ru">htmlacademy.ru</a>
            <input type="radio" name="haru" id="c1" value="yes" checked/>
            <label for="c1"><span></span>Да</label>
            <input type="radio" name="haru" id="c2" value="no">
            <label for="c2"><span></span>Нет</label>
        </label>
    </td>
</tr>

移除外部的
,它没有明显的用途。根据MDN,您不允许将后代标签放入
标签中。如果必须,您可以使用
span
。代码中没有按钮。