单选按钮和标签Cakephp之间的空间 [英] space between the radio button and label Cakephp
本文介绍了单选按钮和标签Cakephp之间的空间的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我是Cakephp的新手,试图在单选框和标签之间创建一个空格
i am newbie in Cakephp trying to create a space between radio box and a label
<span class="label"><b>Gender</b></span>
<?php $options=array('M'=>'Male'."<br>" , 'F'=>'Female');
$attributes=array('legend'=>false,'label'=>'gender_male.','class'=>'radio');
echo $this->Form->radio('gender',$options,$attributes);?>
</div>
我已经在Cakephp中创建了一个单选框,但是该框和标签之间没有空格了……我该如何创建一个空格.
i have created a radio box in Cakephp but there is no space between the box and label is coming ... how can i create a space .
推荐答案
尝试一下
<span class="label"><b>Gender</b></span>
<?php
$options=array('M'=>' Male'."<br>" , 'F'=>' Female');
$attributes=array('legend'=>false,'label'=>'gender_male.','class'=>'radio');
echo $this->Form->radio('gender',$options,$attributes);?>
</div>
这篇关于单选按钮和标签Cakephp之间的空间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文