浮动Float(HTML、CSS)
程序员文章站
2022-04-24 22:33:37
...
浮动Float(HTML、CSS)
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>浮动</title>
<style>
.left,
.right {
float: left;
width: 200px;
height: 200px;
background-color: gray;
}
.right {
float: right;
}
</style>
</head>
<body>
<div class="left"></div>
<div class="right"></div>
</body>
</html>
下一篇: MySQL 键值的使用