<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>float 布局</title>
<style>
* {
margin: 0;
padding: 0;
}
/* 头部 */
header {
height: 150px;
width: 1000px;
background-color: blue;
margin: 0 auto;
}
/* 导航 */
.daohang {
height: 50px;
width: 1000px;
background-color: red;
margin: 0 auto;
list-style: none;
}
a{
height: 50px;
width: 200px;
text-decoration: none;
display: block;
float:right;
【css】flex 布局
最新推荐文章于 2024-02-16 17:50:34 发布