<!DOCTYPE html>

<html>

    <head>

       <div><p>不透明</p></div>

  </head>

    </body>

</html>

div{

background:rgba(0,0,0,0.2) none repeat scroll !important; /*实现FF背景透明,文字不透明*/

background:#000; filter:Alpha(opacity=20);/*实现IE背景透明*/

width:500px;

height:500px;

color:#F30;

font-size:32px;

font-weight:bold;}

 div p{ position:relative; }/*实现IE文字不透明*/

相关文章:

  • 2021-12-26
  • 2022-12-23
  • 2021-11-17
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-10-14
  • 2021-12-11
  • 2022-12-23
  • 2021-12-27
相关资源
相似解决方案