【发布时间】:2013-06-19 17:59:36
【问题描述】:
如何为 Kohana 3 表单添加样式。
<?= Form::input('new_tag', '', 'style="height:1000px;"');?>
这似乎不起作用。它抱怨它需要第三个参数作为数组。有什么想法吗?
【问题讨论】:
如何为 Kohana 3 表单添加样式。
<?= Form::input('new_tag', '', 'style="height:1000px;"');?>
这似乎不起作用。它抱怨它需要第三个参数作为数组。有什么想法吗?
【问题讨论】:
使用 CSS。样式不属于这里。
【讨论】:
查看the docs for the Form creation method
它确实需要一个最后的数组。
<?= Form::input('new_tag', '', array('style' => 'height:1000px'));?>
【讨论】: