<header>
<h4 class="title">Thanh toán qua SMS</h4>
<strong class="back" οnclick="javascript:{window.history.back()}">
<
</strong>
<a class="close" href="https://vtc.1618play.com/index.php">
×
</a>
</header>
header{
background: #35b558;
height: 50px;
}
.title{
color: #fff;
/* text-align: center; */
/* margin-left: 19%; */
margin: 0% auto;
text-align: center;
padding-top: 16px;
}
.back{
color: #fff;
font-size: 33px;
line-height: 50px;
position: absolute;
top: 0;
left: 3%;
}
.close{
color: #fff!important;
opacity: 1;
font-size: 39px;
line-height: 50px;
margin-right: 2%;
position: absolute;
right: 0;
top: 0;
}
header高度写死,中间文字部分用text-align:center,padding-top调整高度,左右按钮用绝对定位