<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title></title>
<style>
.d1
{
/*opacity:0.3;*/
background-color: rgba(36,61,89,0.5);
width:500px;
height:500px;color:#F30;
}
.d2
{
position: fixed;
top: 0px;
font-size:32px;
font-weight:bold;
border: 1px yellow solid;
}
</style>
</head>
<body>
<div class="d1">
<p>不透明</p>
</div>
<!--<div class="d2"><p>不透明</p></div>-->
</body>
</html>
<html>
<head>
<meta charset="utf-8" />
<title></title>
<style>
.d1
{
/*opacity:0.3;*/
background-color: rgba(36,61,89,0.5);
width:500px;
height:500px;color:#F30;
}
.d2
{
position: fixed;
top: 0px;
font-size:32px;
font-weight:bold;
border: 1px yellow solid;
}
</style>
</head>
<body>
<div class="d1">
<p>不透明</p>
</div>
<!--<div class="d2"><p>不透明</p></div>-->
</body>
</html>