2017-03-24 44 views

回答

1

試試這個:

echo Form::select('size', array('L' => 'Large', 'S' => 'Small'), 'S', array('id' => 'your_id', 'class' => 'your_class')); 

其中:

size:下拉列表的名稱,

array:陣列產生下拉,

S:默認選擇的值,

之後,你可以通過idclassstyle像的數組:

array('id' => 'your_id', 'class' => 'your_class')