开发者

aligning (float) issue cross browser

开发者 https://www.devze.com 2023-01-29 10:50 出处:网络
I am h开发者_StackOverflowaving a problem with the aligning of an image (float left) and a div (float rigth).

I am h开发者_StackOverflowaving a problem with the aligning of an image (float left) and a div (float rigth).

It works fine on IE8, Firefox and Opera

It doesn't work fine in IE7, and Google Chrome.

I can't figure out what is going on.

Any help would be very much appreciated.

I upload the page in HERE


One possible solution is that you add the float:left property to your image in the appropriate row, in your code it would look like this:
$('#imgShow').css({ 'float':'left', 'width': '450px', 'height': '300px', 'margin_bottom': '4px', 'padding-bottom': '8px' });

I tested it in Google Chrome (8.0.552.208 beta, Ubuntu), and it seemed to work fine. Hope that helps.


Try putting the right-floated div first in HTML.

0

精彩评论

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