透明度设置opacity

 

 透明度设置opacity属性

示例

 

<!DOCTYPE html>
<html>
<head>
<style> 
div
{
background-color:red;
opacity:0.5;
filter:Alpha(opacity=50); /* IE8 以及更早的浏览器 */
}
</style>
</head>
<body>

<div>本元素的不透明度是 0.5。请注意,文本和背景色都受到不透明级别的影响。</div>

</body>
</html>

 

 效果:

透明度设置opacity

 

相关文章:

  • 2022-03-10
  • 2022-12-23
  • 2021-04-10
  • 2021-12-25
  • 2021-09-20
猜你喜欢
  • 2022-12-23
  • 2021-06-03
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-18
  • 2021-11-05
相关资源
相似解决方案