浮动float 摆放位置

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    <div style="height:50px; line-height: 50px; background-color: #ffb900; color: #eff9f9">
        <div style="font-size: 10px; float: left;  20%">1</div>
        <div style="font-size: 10px; float: right;  60%">2</div>
    </div>
</body>
</html>
原文地址:https://www.cnblogs.com/my-love-is-python/p/9263821.html