【问题标题】:how to style the form using css in codeigniter [closed]如何在codeigniter中使用css设置表单样式[关闭]
【发布时间】:2017-07-18 16:02:32
【问题描述】:

是否可以在 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 示例设置上述代码的样式

  • 如何在上面的代码中添加类?

  • 是否可以添加 JavaScript ?

【问题讨论】:

标签: php html css codeigniter


【解决方案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);
?>

阅读How to add attributes using codeigniter form helper

【讨论】:

    猜你喜欢
    • 2022-06-15
    • 1970-01-01
    • 2017-10-18
    • 1970-01-01
    • 2019-01-07
    • 1970-01-01
    • 1970-01-01
    • 2011-02-08
    • 1970-01-01
    相关资源
    最近更新 更多