我有一个Zf2表单日期元素,我以这种方式使用它,
$this->add(array(
'type' => 'Zend\Form\Element\Date',
'name' => 'releasedate',
'options' => array(
'label' => 'Release Date'
),
'attributes' => array(
'min' => '2012-01-01',
'max' => '2020-01-01',
'step' => '1',
)
));
因此,在Chrome浏览器中,我得到了一个日期选择器,但在野生动物园或Firefox中却找不到了?我需要为此做任何新的配置吗?
并非所有浏览器都支持输入类型date http://caniuse.com/input-datetime
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句