这让我发疯...
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<title></title>
<style type="text/css">
.cantWrapper { white-space: nowrap; }
.cantWrapper .floatedDiv { float: left; background-color: Blue; height: 16px; width: 16px;}
.cantWrapper .text { }
</style>
</head>
<body>
<div class="cantWrapper">
<div class="floatedDiv"></div>
<div class="text">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque laoreet felis quis erat blandit non interdum eros aliquet. Nullam libero risus, commodo sed lacinia vitae, aliquet at lacus. Ut mattis, leo vel dignissim ullamcorper, augue risus dapibus purus, in suscipit nisi ante sit amet massa. Curabitur in magna sed mauris auctor adipiscing vehicula a nisi. Nulla id massa sapien, eu viverra odio. Curabitur sollicitudin libero quis nunc molestie lacinia. In dictum sapien ut eros scelerisque adipiscing. Fusce feugiat adipiscing elit, commodo placerat lacus molestie in. Phasellus pharetra vestibulum aliquet. Sed tincidunt pulvinar mattis. Curabitur congue est placerat risus iaculis quis condimentum neque sodales. Vivamus in urna purus, in luctus velit. Sed mollis orci sed mauris ullamcorper vulputate. Nullam eget ante nibh, at sagittis lectus.</div>
</div>
</body>
</html>
在所有其他浏览器中,文本浮动在蓝色框之后。然而,在 IE6 中(有点可预见),文本会低于蓝色框。
...我只是找不到答案。文本不能换行,因此没有换行。
-- 随机添加这个会使蓝框完全消失