开发者

Width: Auto Taking the First Element's Width

开发者 https://www.devze.com 2023-01-30 04:35 出处:网络
Have a div and 开发者_StackOverflowthere\'s a small link div inside that\'s 630 pixels wide and other little larger table inside that\'s 697 (According to the Firebug Layout inspector).

Have a div and 开发者_StackOverflowthere's a small link div inside that's 630 pixels wide and other little larger table inside that's 697 (According to the Firebug Layout inspector).

The containing div has width: auto and the layout inspector tells me that it's getting 630 for it's width. Why is this happening? Why isn't it picking the larger of the two values?


Are you using position: relative; on all the corresponding divs?

0

精彩评论

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