请老师看一下,多行文本框位置有点不对,提交按钮怎么设置文字,还有老师检查一下还有没有其他问题,谢谢。
/* banner */
.banner{
position: relative;
}
.banner .banner-image img{
width: 100%;
height: 600px;
}
.banner .mask{
width: 100%;
height: 600px;
background-color:rgb(0,0,0,0.5);
position: absolute;
top:0;
}
.banner form{
width: 504px;
position:absolute;
left: 50%;
margin-left: -252px;
top:0;
margin-top:100px;
}
.banner form input{
width: 504px;
height: 40px;
margin:15px;
}
.banner form textarea{
width: 504px;
height: 110px;
}
.banner form .submit{
width: 200px;
height: 40px;
position: absolute;
right:100px;
}
<!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>浮动与定位</title>
<link rel="stylesheet" href="css/css4-4.css">
</head>
<body>
<header class="header">
<div>
<h1>career builder</h1>
<ul>
<li> <a href=""> home </a></li>
<li> <a href=""> about</a></li>
<li> <a href=""> gallery</a></li>
<li> <a href=""> faculty</a></li>
<li> <a href=""> events</a></li>
<li> <a href=""> contact</a></li>
</ul>
</div>
</header>
<!-- banner -->
<div class="banner">
<div class="banner-image">
<img src="images/beijing/1.jpg" alt="">
</div>
<!-- 遮罩层 -->
<div class="mask">
</div>
<!-- 表单 -->
<div class="form">
<form action="">
<input type="text" name="" id="" placeholder="your name">
<input type="text" name="" id="" placeholder="your number">
<input type="text" name="" id="" placeholder="your email">
<textarea placeholder="write your comment here " name="" id="" cols="30" rows="10"></textarea>
<input class="submit" type="submit" name="" id="" placeholder="send message">
</form>
</div>
</div>
</body>
</html>
正在回答
同学你好,可以用value属性实现,如下
祝学习愉快!
相似问题
登录后可查看更多问答,登录/注册
恭喜解决一个难题,获得1积分~
来为老师/同学的回答评分吧
0 星