更改CSS样式HTML5表单所需的属性所需的消息 [英] Change css style HTML5 form required attribute required message
问题描述
我与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屋!