日期:2014-05-18  浏览次数:20447 次

为什么我的 .gif 图片不显示透明呢??
<style type="text/css">
  body{
  background-image:url(图像/bg-grad.gif);
  background-repeat:repeat-x;
  background-color:#3399FF;
  }
  h1{
  text-align:right;
  background:url(图像/bg-h1.gif) no-repeat;
  height:60px;
  background-position:right;
   
  }
  h1 span{
  display:none;
  }
  img{
  boder:1px #000 solid;
  margin:-6px 6px 2px -6px; 


  }
  p span{
  font-size:25px;
  font-weight:bold;
  line-height:1.0;
  padding-right:5px;
  float:left;
  }
  .div1{
  /*就是这个背景图片,在其他页面都正常显示透明,就再这里不显示透明了,为什么呢??*/
  background: url(阴影/images/bottom-right.gif) no-repeat bottom right;
  float:left;

  margin:2px 10px 2px 2px;

  }
  </style>
</head>
<body>
  <form id="form1" runat="server">
  <div>
  <h1><span>my 标题</span></h1>
  <div class="div1"> <img alt="" src="图像/cup.gif" />
  </div> <p><span>T</span>he Internet Society’s mission is to achieve a world in which everyone everywhere is connected to an open and universally accessible Internet. Since its inception in 1992, ISOC has been at the forefront of global Internet education by bringing essential information and training to people throughout the world.The Internet Society’s mission is to achieve a world in which everyone everywhere is connected to an open and universally accessible Internet. Since its inception in 1992, ISOC has been at the forefront of global Internet education by bringing essential information and training to people throughout the world.</p>
  </div>
  </form>
</body>
</html>


------解决方案--------------------
没遇过这种问题.帮顶了