這是推動我堅果...IE6 NOWRAP和浮動問題
<!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中(有點可預測地),文本在藍框下方。
...我只是找不到答案。文字無法包裝,因此nowrap。
- 隨機,加入這使得藍盒子完全消失
嘿爲什麼你稱它爲包裝,如果它無法包裝? :O – 2010-01-18 13:16:24
總是有一個! :o)我會更改它的名字... – Paul 2010-01-18 13:17:05
我被拒絕了什麼? – Paul 2010-01-18 13:20:33