CSS:background属性使用总结
背景色透明写法
<title>背景色透明写法</title>
<style>
div {
width: 300px;
height: 300px;
/* background-color: black; */
/* background: rgba(0, 0, 0, 0.3); */
/* 0.3等同于.3 */
background: rgba(0, 0, 0, .3);
}
</style>