是否可以在codeigniter上添加css?请帮我在下面的代码中添加css
echo validation_errors();
echo "email :".form_input('email', '');
echo "Password :".form_password('password', '');
echo "Password Confirmation :".form_password('passconf', '');
echo form_submit('submit', 'Submit');
以上是我的密码重置视图文件,请帮我用任何css示例设置上述代码的样式
如何在上面的代码中添加类?
答案 0 :(得分:1)
<?php
$data = array(
'name' => 'email',
'value' => '',
'class' => 'email_Input', // Create class name and use this class name in your .css file
'style' => 'height:30px' // Or, write property here itself
);
echo form_input($data);
?>