Html 在cakephp 3.2中,不能在单选按钮选项之间放置空格
在Cakephp3.2中,我无法在单选按钮之间放置空格。我相信有一个简单的方法。 下面是我在测试服务器上谈论的一个例子,请查看语法部分中的单选按钮区域“关于2/3rds向下”页面Html 在cakephp 3.2中,不能在单选按钮选项之间放置空格,html,css,cakephp,Html,Css,Cakephp,在Cakephp3.2中,我无法在单选按钮之间放置空格。我相信有一个简单的方法。 下面是我在测试服务器上谈论的一个例子,请查看语法部分中的单选按钮区域“关于2/3rds向下”页面 http://andrewt.com.au/crm/students/studentassessment-eng7/35730 我的代码 <?php $opt1q1=' I wanted to watch TV, but the electricity went out unexpectedly.';
http://andrewt.com.au/crm/students/studentassessment-eng7/35730
我的代码
<?php $opt1q1=' I wanted to watch TV, but the electricity went out unexpectedly.';
?>
<br>
<h3><?php echo 'Task 3: Grammar' ?> </h3>
<div class='alert alert-info'><?php echo '1 )'.$opt1q1; ?> </div>
<?php echo $this->Form->radio( 'a16', ['text'=>'a) noun', 'b) verb ','c) preposition ', 'd) pronoun ' ],
['default' =>$assessment['a16'] ,'style' => 'padding-left:5px;' ] );
我想你要找的是链接中断
嗨,我说得很清楚,我希望选项之间有空格(水平)。为什么这么难找到?请不要换行啊,对不起,在“标签”上使用“左边距:40px”代替使用左边距是否有效?这对使用左边距没有影响。我需要一个工作的例子,因为猜测工作对我来说毫无意义。单选按钮很难使用Cakephp不,我的意思是在css中使用“标签”然后使用“左边距:40px”hi close,但是设置默认值(点击过的按钮)现在不起作用。这也不是cakephp,但我可能会改变它。
<input type="hidden" name="a16" value="" class="form-control"><label for="a16-0">
<input type="radio" name="a16" value="0" <?php echo $assessment['a16']==0 ?' checked=checked':'' ?> >a) noun</label><label for="a16-0">
<input type="radio" name="a16" value="1" <?php echo $assessment['a16']==1 ?' checked=checked':'' ?> >b) verb</label><label for="a16-1">
<input type="radio" name="a16" value="2" <?php echo $assessment['a16']==2 ?' checked=checked':'' ?> >c)preposition</label><label for="a16-2">
<input type="radio" name="a16" value="3" <?php echo $assessment['a16']==3 ?' checked=checked':'' ?> >d)pronoun </label><label for="a16-3">
<style>
label{
margin-left: 16px;
}
</style>