请老师检查作业:
来源:7-4 项目作业
Imooccccccc
2021-03-24 15:54:20
<html>
<head>
<title>css浮动</title>
<style type="text/css">
.div1{
width: 100%;
height: 100%;
background-color:#FFC0CB;
}
.div2{
position: absolute;
left: 50%;
top:50%;
width: 200px;
margin-left: -100px;
}
#text{
height: 30px;
width: 150px;
border: 1px solid red;
}
#sousuo{
height: 30px;
width: 50px;
background-color: red;
border: none;
position: relative;
top: 1px;
}
</style>
</head>
<body>
<div class="div1">
<div class="div2">
<input type="text" name="" id="text" placeholder="请输入..."><button id="sousuo">搜索</button>
</div>
</div>
</body>
</html>
1回答
好帮手慕小班
2021-03-24
同学你好,同学的代码完成的不错,很棒,继续加油
祝学习愉快!
相似问题