<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Document</title> <style type="text/css"> .one{width: 250px; height: 250px;background: red;float: left;}.tow{ width: 300px; height: 200px; background:yellow;} .three{ width: 200px; height: 200px; background: pink; float: right;} </style> </head> <body> <div class="one"></div> <div class="tow"></div> <div class="three"></div> </body> </html>
效果圖:
我有點(diǎn)不明白為什么粉色的在最下面而且剛好頂部在黃色底部的水平線上。按照我的理解,粉色的應(yīng)該在最右端的上面。求解析?。?!