开发者

HTML Form Tag creating extra space in IE 7 and IE 8

I am having an issue with tags in IE 7 and 8 there are some unwanted spaces which I am experiences on these browsers my css snippet.

form{margin:0;padding:0;text-align:left;}

This css 开发者_StackOverflow中文版fails only on IE 7 and 8 Please let me what I am doing wrong


Add display : inline; in the css as follows:

form{margin:0;padding:0;text-align:left;display: inline;}


There is a bug in IE7&8 where if a form is preceded by an unclosed <p> tag, it will create an extra box above the form. Closing the <p> should fix the issue.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜