<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
</head>
<style>
div{
background-color: rgb(127,255,212,0.6); //第四位可以设置透明度
position: fixed; //固定定位
top: 0;
text-align: center;
}
</style>
<body>
<div>
被置顶div块
</div>
</body>
</html>
top:0;要有,要不然会和其他块重合(?应该