日期:2014-05-17  浏览次数:20634 次

【紧急求助】大图通过坐标获取小图后,小图上的边框怎么去掉?
有个问题困扰了我1小时了。麻烦高手帮忙下。
有一张这样的大图,我需要从大图上获取小图标,通过坐标获取:



.icon_11{background: url("Icons.gif") -47px -25px; width:32px;height: 32px; border: 0px;cursor: pointer;}



<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>test.html</title>
   <style type="text/css">
    .icon_11{background: url("Icons.gif") -47px -25px; width:32px;height: 32px; border: 0px;cursor: pointer;}
   </style>

  </head>
  
  <body>
    <img class="icon_11" />
  </body>
</html>



最终执行HTML效果如下:


图片上的边框怎么去掉?
border: none;
border: 0 0 0 0;
margin: 0 0 0 0;
margin: none;

我全试过了,不管是全局还是局部设置我都试过了。没用,还是有边框。
麻烦高手指点迷津,在下感激不尽。
css html border class

------解决方案--------------------
<div class="icon_11"></div>