Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/linux/25.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 如何使我的2个单选按钮居中并远离文本?_Html - Fatal编程技术网

Html 如何使我的2个单选按钮居中并远离文本?

Html 如何使我的2个单选按钮居中并远离文本?,html,Html,我正在做一个表格,包括文本和单选按钮。我想让单选按钮远离我的文本,并在一个位置居中,使它看起来整洁,但无论我如何把浮动或边距,我的按钮1,它不工作。当我尝试输入html时,文本没有移动。怎么啦 <label for="Process">Which Process to Add?</label><br> <tr><td rowspan="2">Printing (39 x 55)</t

我正在做一个表格,包括文本和单选按钮。我想让单选按钮远离我的文本,并在一个位置居中,使它看起来整洁,但无论我如何把浮动或边距,我的按钮1,它不工作。当我尝试输入html时,文本没有移动。怎么啦

<label for="Process">Which Process to Add?</label><br>
                        <tr><td rowspan="2">Printing (39 x 55)</td>
                        <td><input type="radio" name="process1" value="Yes" class="Mar"/>Yes</td>
                        <tr>
                        <td><input type="radio" name="process1" value="No" checked="checked" class="Mar"/>No</td></tr><br>

                        <tr><td rowspan="2">Printing (28 x 40 / 20 x 28)</td>
                        <td><input type="radio" name="process2" value="Yes"/>Yes</td>
                        <tr>
                        <td><input type="radio" name="process2" value="No" checked="checked"/>No</td></tr><br>

                        <tr><td rowspan="2">Injet Printing</td>
                        <td><input type="radio" name="process3" value="Yes"/>Yes</td>
                        <tr>
                        <td><input type="radio" name="process3" value="No" checked="checked"/>No</td></tr><br>
要添加哪个进程?
印刷(39 x 55) 对 否
印刷(28 x 40/20 x 28) 对 否
印花 对 否

您的html标记结构不正确。请尝试以下代码:

要添加哪个进程?
印刷(39 x 55)
对
不
印刷(28 x 40/20 x 28)
对
不
印花
对
不

这不是一个php问题,那么为什么要将其标记为php。谢谢!!!它真的有效!对这个结构很抱歉,因为我也从另一个创建者那里得到了这个结构的引用:(你到底做了什么?