开发者

ul not aligned properly in IE7 - Aligned to the right of the div, aligned to the left in every other browser

开发者 https://www.devze.com 2023-04-12 20:36 出处:网络
So I\'m making an auto-complete dropdown list, using javascript.It works fine 开发者_Go百科in IE8+, Chrome, and Firefox, but the alignment is off in IE7.

So I'm making an auto-complete dropdown list, using javascript. It works fine 开发者_Go百科in IE8+, Chrome, and Firefox, but the alignment is off in IE7.

Here's how it's supposed to look, and here's how it looks in IE7. I've uploaded the HTML here.

Any help would be greatly appreciated.


just add left: 0; to .autocomplete_completionListElement — you have an absolute positioning here and IE thinks that it still must be on a line with previous content, so you need to set left to make IE know where the div must be positioned for sure.

0

精彩评论

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

关注公众号