1
對於我在CakePHP中構建的應用程序,我想使用第三方CSS模板(Pure-CSS)。該模板的設計使得我不時需要將多個類分配給單個元素。在很多地方我使用CakePHP助手,例如。用於生成表單。我無法弄清楚如何使用這些傭工來分配多個類:使用助手將多個類分配給html元素
//this works (only one class)
echo $this->Form->create('Profile',array('id' => 'myForm', 'class' => 'pure-form'));
//but none of these does
echo $this->Form->create('Profile',array('id' => 'myForm', 'class' => 'pure-form,pure-form-aligned'));
echo $this->Form->create('Profile',array('id' => 'myForm', 'class' => {'pure-form','pure-form-aligned'}));
echo $this->Form->create('Profile',array('id' => 'myForm', 'class' => 'pure-form', 'class' => 'pure-form-aligned'));
我怎能捨棄使用輔助方法HTML元素的多個類?
請接受一個答案每個CSS類分開,不要把答案不從計算器考慮的問題沒有得到解決停車問題。 – AD7six