1.设置opacity
。1-0。高版本用:filter
。alpha()
。
2.特殊属性特殊处理:
1)页面元素和样式
<head>
<meta charset="UTF-8">
<title>Title</title>
<style>
* {
margin: 0;
padding: 0;
}
body {
background-color: #000000;
}
#box {
width: 100px;
height: 100px;
background-color: red;
position: absolute;
}
</style&