竹海1314

float样式的使用
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    <div style="width: 20%;background-color: brown;float: left">1</div>
    <div style="width: 80%;background-color: aquamarine;float: left">2</div>
</body>
</html>

可以解决拼接行的问题。

posted on 2018-01-24 21:30  竹海1234  阅读(130)  评论(0编辑  收藏  举报