gpt4 book ai didi

zend-framework - Zend 单选元素装饰器

转载 作者:行者123 更新时间:2023-12-03 22:42:02 25 4
gpt4 key购买 nike

<分区>

Possible Duplicate:
Display Zend_Form_Element_Radio on one line

我使用以下代码生成单选按钮:

        $radio = new Zend_Form_Element_Radio('rating');
$radio->setLabel('Rating')
->addMultiOptions(array(
'1' => '1',
'2' => '2',
'3' => '3',
'4' => '4',
'5' => '5'
));

产生以下 HTML 输出:

<label for="rating-1">
<input id="rating-1" type="radio" value="1" name="rating">
1
</label>
<br>
<label for="rating-2">
<input id="rating-2" type="radio" value="2" name="rating">
2
</label>
<br>
<label for="rating-3">
<input id="rating-3" type="radio" value="3" name="rating">
3
</label>
<br>
<label for="rating-4">
<input id="rating-4" type="radio" value="4" name="rating">
4
</label>
<br>
<label for="rating-5">
<input id="rating-5" type="radio" value="5" name="rating">
5
</label>

如何去掉每个

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com