Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何更改 symfony2 formType 类中的默认文本字段大小
您是否尝试过类似的方法:
$builder->add('your_text_field', 'text', array( 'attr' => array('size' => '25'), ));