开发者

Mysterious and weird lines after using uni-form

I'm using django-uni-form to display forms. I've included all the css an开发者_如何学运维d javascript (notably jquery) in the page. But now I get some weird looking lines. The image below show how it looks:

http://i243.photobucket.com/albums/ff176/cwalkrox/uni-form1.jpg

You can notice that for username and email address, the lines are aligned with the upper side of text inputs while for two passwords, the lines are below the password inputs. In uni-form's official website, I can't see any line in the 3 examples. Even if it gives me some lines, should it be consistent?

So the strange story doesn't stop here. The jquery can highlight the selected inputs. But the ways it highlights username, email and password are still inconsistent. The following images prove it:

i243.photobucket.com/albums/ff176/cwalkrox/uni-form2.jpg

i243.photobucket.com/albums/ff176/cwalkrox/uni-form3.jpg

So every problems seem to stem from the mysterious lines. So how this happens?

BTW, the page I show you is rendered with the form of django-registration. The rendering snippet is:

<form action="" method="post" class="uniForm">
<fieldset>
  {{ form|as_uni_form }}
</fieldset>
</form>


Those lines are due to the css files included in django-uniform: uni-form.css, uni-form-generic.css and uni-form.jquery.css.

It seems weird but at least in my case (a pinax project) the forms look better without the provided css.

my 2 cents

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜