更改CSS样式HTML5表单所需的属性所需的消息 [英] Change css style HTML5 form required attribute required message

查看:104
本文介绍了更改CSS样式HTML5表单所需的属性所需的消息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我与RTLbootstrap一起用于RTL项目.现在我有任何带有 HTML5表单必需属性必需消息的表单.在行动中,我有这个气球供输入:

i work with RTLbootstrap for RTL project. now i have any form with HTML5 form required attribute required message. in action i have this ballon for input:

我需要像这样为RTL进行更改:

I need To change Like This For RTL:

HTML:

<div class="controls">
  <input class="span4" type="text" name="title" placeholder="Title"  value=""  required oninvalid="this.setCustomValidity(\'User ID is a must\')">
</div>

注意:这不是自定义工具提示或气球!如果我们在表单输入中添加必需的html标签.提交表单HTML5 form required attribute之前,将自动显示此气球消息.我需要编辑/更改/设置CSS以获得验证消息吗?

NOTE:This is not custom tooltip or ballon! if we add required html tag in form input. before submit form HTML5 form required attribute show this ballon message automaticly. I need To edit/change/Set CSS For validation message?

如何更改要在input字段的right中显示的必填字段消息的显示?

How To change Display Of required field message for show in right of input field?

推荐答案

Chrome不再允许样式验证表单气泡:

Chrome does not allow styling form validation bubbles anymore:

查看详细信息

Firefox无法设置错误气泡的样式

Firefox has no way to style the error bubbles

查看详细信息

这篇关于更改CSS样式HTML5表单所需的属性所需的消息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆