css布局淘宝搜索框

时间:2020-08-20 23:48:28   收藏:0   阅读:253

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
<style>
.one{
width: 20%;
height: 40px;
background-color: red;
float: left;
}

.three{
width: 20%;
height: 40px;
background-color: black;
float: right;
opacity: 0.4;
}
.two{
width: 60%;
height: 40px;
background-color: yellow;
margin: 0 auto;
}
</style>
</head>
<body>
<!-- 先写左右两边 最后写中间 -->
<div class="one">1</div>
<div class="three">3</div>
<div class="two">2</div>
</body>
</html>

原文:https://www.cnblogs.com/weixin2623670713/p/13538464.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!