开发者

Text not wrapping in IE7 for Windows7

开发者 https://www.devze.com 2023-03-18 09:16 出处:网络
I\'m currently building a mobile site and while testing using Windows7 which uses IE7, I ran into a CSS bug whereby my position absoluted element doesn\'t wrap within a container (fluid width) and can

I'm currently building a mobile site and while testing using Windows7 which uses IE7, I ran into a CSS bug whereby my position absoluted element doesn't wrap within a container (fluid width) and can't fig开发者_高级运维ure out why. Some input would be much valued.

Fiddle: http://jsfiddle.net/calebo/ScVYD/


Without declaring a width on the heading, I can't see how it would wrap (although it is wrapping in Chrome). However if you take a different approach and use margins to position the heading, it can remain in normal flow and wrap naturally.

I made a demo that works for me in IE7, Chrome 14 and Firefox 7

0

精彩评论

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