1 <!DOCTYPE html> 2 <html> 3 <head> 4 <meta charset="utf-8"> 5 <title></title> 6 <style> 7 div{ 8 width: 100px; 9 height: 100px; 10 background-color: red; 11 display: inline-block; 12 *display:inline; 13 *zoom:1; 14 } 15 </style> 16 <!-- 17 解决方案: 18 *display:inline; 19 *zoom:1; 20 --> 21 </head> 22 <body> 23 <div>div</div> 24 <div>div</div> 25 <div>div</div> 26 </body> 27 </html>