更新时间:2023-02-06 08:33:08
如果你只是想让背景的颜色是透明的, ,使用
If you just want the color of the background to be transparent and not the child content, use
background-color:rgba(0,0,0,.5); //设置为50%透明
有关详细信息,请参阅此页面 - 这是一个css3规范,因此不会显示在每个浏览器:
See this page for more details - it's a css3 spec so won't show up in every browser: