老师帮忙检查下
来源:4-6 自由编程
小雨不大点
2021-02-03 22:39:04
问题描述:
老帮忙检查一下,看看有什么需要改进的
相关代码:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<link rel="stylesheet" href="css/css.css">
</head>
<body>
<div class="banner">
<img src="images/banner3.jpg" alt="图片">
</div>
<div class="shade"></div>
<form action="#" method="POST">
<input type="text" placeholder="your Name">
<input type="text" placeholder="your Phone">
<input type="text" placeholder="your Emall">
<textarea cols="30" >Write Your Comment Here</textarea>
<button>SEND MESSAGE</button>
</form>
</body>
</html>
*{
padding: 0;
margin: 0;
}
.banner img{
position: absolute;
height: 600px;
width: 100%;
z-index: 66;
}
.shade{
width: 100%;
height: 600px;
position: absolute;
z-index: 666;
background: rgba(0, 0, 0, 0.5);
}
form {
position: absolute;
left: 50%;
margin-left: -252px;
width: 504px;
height: 600px;
padding-top: 100px;
z-index: 6666;
}
form input,textarea{
width:504px;
height: 40px;
margin-bottom: 20px;
background: none;
border: 2px solid #808080;
}
form textarea{
height: 110px;
color:#808080;
}
form button{
background: none;
border: 2px solid #808080;
position: absolute;
width: 200px;
height: 40px;
color:#808080;
left:176px;
}
1回答
好帮手慕张
2021-02-04
同学你好,代码效果正确,继续加油。祝学习愉快!