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.
我正在为我的项目使用 CodeIgniter 表单验证。当用户没有在文本字段中填写适当的值时,错误会显示为“需要用户名字段”。所以我想在 codeIgniter 中更改此错误的默认字体和样式.
您可以使用以下方法设置错误分隔符:
$this->form_validation->set_error_delimiters('<div class="error">', '</div>');
然后你可以设置 div 的样式