如何让 div 2 环绕 div 1 ?
(两个 div 都包含文本)
+---++------------------+
| || |
| 1 || |
| || 2 |
+---+| |
+---- |
| |
+-----------------------
最佳答案
float 1:Demo
CSS:
#d1 {
float: left;
}
HTML:
<div id="d1">Hello world. Hello world. Hello world. </div>
<div id="d2">
Testing. Testing. Testing. Testing. Testing. Testing. Testing. Testing. Testing. Testing. Testing. Testing. Testing. Testing. Testing. Testing. Testing. Testing. Testing. Testing. Testing. Testing. Testing. Testing. Testing. Testing. Testing.
</div>
关于html - 将文本环绕在一个 div 周围,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14116266/