<style type="text/css">
#wrapper {
width:700px;
clear:both;
margin:0 auto;
text-align:center;
}
#first {
background-color:red;
width:200px;
float:left;
}
#second {
background-color:blue;
width:300px;
float:left;
}
#third {
background-color:#bada55;
width:200px;
float:left;
}
</style>
<title>无标题文档</title>
</head>
<body>
<div id="wrapper">
<div id="first">first</div>
<div id="second">second</div>
<div id="third">third</div>
</div>
</body>
</html>
3个div并列居中
最新推荐文章于 2022-08-23 18:16:15 发布