简体   繁体   English

jQuery验证和CSS位置

[英]jQuery validation and css position

I have the following page: http://valogiannis.com/freelancer/neurosport/register.html 我有以下页面: http : //valogiannis.com/freelancer/neurosport/register.html

I use a validation jquery plugin: http://docs.jquery.com/Plugins/Validation 我使用了一个验证jquery插件: http : //docs.jquery.com/Plugins/Validation

When the user types a text inside the text fields and if the text is valid then a check image appears. 当用户在文本字段内输入文本时,如果该文本有效,则会显示一个选中图像。

The plugin add a label inside the td with class registerInput and below the input . 插件在td内部的类registerInputinput下方添加一个label

So I used position:relative to position the image in the left side of the input. 因此,我使用position:relative将图像放置在输入的左侧。 But this create a gap between the input fields. 但这在输入字段之间造成了差距。 How can I position the auto created label before the input field? 如何将自动创建的标签放置在输入字段之前?

Any solution with css or jquery is appreciated, or any trick of the validation plugin I use to position the label in a specific place (in fact I have created a td for this with class registerIcon . 赞赏使用css或jquery的任何解决方案,或者我用来将标签放置在特定位置的验证插件的任何技巧(事实上,我已经使用registerIcon类为此创建了一个td

I found that using margin:-XX; 我发现使用margin:-XX; works :) 作品:)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM